diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-11 16:35:49 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-11 16:35:49 +0100 |
commit | e8e678e1b73adb3cc5987e6808cbbd633b6805e6 (patch) | |
tree | 0a2e762b18cf67fed87cfd90556afb3f9fce2045 /source/Generating/FinishGen.h | |
parent | Removed an unused obsolete function chain - cWorld::GetChunkBlockData() (diff) | |
download | cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.gz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.bz2 cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.lz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.xz cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.tar.zst cuberite-e8e678e1b73adb3cc5987e6808cbbd633b6805e6.zip |
Diffstat (limited to 'source/Generating/FinishGen.h')
-rw-r--r-- | source/Generating/FinishGen.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/source/Generating/FinishGen.h b/source/Generating/FinishGen.h index ecf26e5fb..6a2367f38 100644 --- a/source/Generating/FinishGen.h +++ b/source/Generating/FinishGen.h @@ -7,6 +7,8 @@ - cFinishGenSprinkleFoliage - cFinishGenLilypads - cFinishGenBottomLava + - cFinishGenPreSimulator + - cFinishGenDeadBushes */ @@ -59,6 +61,7 @@ protected: + class cFinishGenSprinkleFoliage : public cFinishGen { @@ -150,7 +153,6 @@ protected: - class cFinishGenPreSimulator : public cFinishGen { @@ -190,3 +192,34 @@ protected: + +class cFinishGenDeadBushes : + public cFinishGen +{ +public: + cFinishGenDeadBushes(int a_Seed) : + m_Noise(a_Seed) + { + } + +protected: + cNoise m_Noise; + + int GetNumDeadBushes(const cChunkDef::BiomeMap & a_BiomeMap); + + // cFinishGen override: + virtual void GenFinish( + int a_ChunkX, int a_ChunkZ, + cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change + cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change + cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data + const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to + cEntityList & a_Entities, // Entities may be added or deleted + cBlockEntityList & a_BlockEntities // Block entities may be added or deleted + ) override; +} ; + + + + + |