diff options
author | Mattes D <github@xoft.cz> | 2014-06-02 21:49:47 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-02 21:49:47 +0200 |
commit | 60786cb06d6babb33b3a303512a634fa823c7620 (patch) | |
tree | c078e2d7638c24b995fae8a7c2acc690a3db2ad8 /src/Generating/UnderwaterBaseGen.h | |
parent | Small tweak for mobs (diff) | |
parent | Update UnderwaterBase prefabs. (diff) | |
download | cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.gz cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.bz2 cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.lz cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.xz cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.zst cuberite-60786cb06d6babb33b3a303512a634fa823c7620.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/UnderwaterBaseGen.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/Generating/UnderwaterBaseGen.h b/src/Generating/UnderwaterBaseGen.h new file mode 100644 index 000000000..0aefbb4c7 --- /dev/null +++ b/src/Generating/UnderwaterBaseGen.h @@ -0,0 +1,50 @@ + +// 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: + cUnderwaterBaseGen(int a_Seed, int a_GridSize, int a_MaxDepth, int a_MaxSize, cBiomeGen & a_BiomeGen); + +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; + + /** Maximum size, in X/Z blocks, of the base (radius from the origin) */ + int m_MaxSize; + + /** The underlying biome generator that defines whether the base is created or not */ + cBiomeGen & m_BiomeGen; + + + // cGridStructGen overrides: + virtual cStructurePtr CreateStructure(int a_OriginX, int a_OriginZ) override; +} ; + + + + |