2014-05-31 16:06:14 -04:00
|
|
|
|
|
|
|
// UnderwaterBaseGen.h
|
|
|
|
|
|
|
|
// Declares the cUnderwaterBaseGen class representing the underwater base generator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "GridStructGen.h"
|
|
|
|
#include "PrefabPiecePool.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cUnderwaterBaseGen :
|
|
|
|
public cGridStructGen
|
|
|
|
{
|
|
|
|
typedef cGridStructGen super;
|
|
|
|
|
|
|
|
public:
|
2014-10-19 08:01:59 -04:00
|
|
|
cUnderwaterBaseGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth, int a_MaxSize, cBiomeGenPtr a_BiomeGen);
|
2014-05-31 16:06:14 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
class cUnderwaterBase; // fwd: UnderwaterBaseGen.cpp
|
|
|
|
|
|
|
|
|
|
|
|
/** The noise used for generating random numbers */
|
|
|
|
cNoise m_Noise;
|
|
|
|
|
|
|
|
/** Maximum depth of the generator tree*/
|
|
|
|
int m_MaxDepth;
|
|
|
|
|
2015-05-09 03:25:09 -04:00
|
|
|
/** Maximum size, in X / Z blocks, of the structure (radius from the origin) */
|
2014-05-31 16:06:14 -04:00
|
|
|
int m_MaxSize;
|
|
|
|
|
|
|
|
/** The underlying biome generator that defines whether the base is created or not */
|
2014-10-19 08:01:59 -04:00
|
|
|
cBiomeGenPtr m_BiomeGen;
|
2014-05-31 16:06:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
// cGridStructGen overrides:
|
2014-06-16 10:12:50 -04:00
|
|
|
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
|
2014-05-31 16:06:14 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|