diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-03 21:16:09 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-03 21:16:09 +0200 |
commit | 358e74ded82c12f49483b4c2adc50c2d1d043051 (patch) | |
tree | c1ca3bdd4405fd63a818df01e395af5ef195bf7a /source/FinishGen.h | |
parent | Temporary jungle trees (swamp-like), based on code by STR_Warrior). Also vines don't overwrite leaves anymore. (diff) | |
download | cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar.gz cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar.bz2 cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar.lz cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar.xz cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.tar.zst cuberite-358e74ded82c12f49483b4c2adc50c2d1d043051.zip |
Diffstat (limited to '')
-rw-r--r-- | source/FinishGen.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source/FinishGen.h b/source/FinishGen.h index 1684e5eea..39a79c384 100644 --- a/source/FinishGen.h +++ b/source/FinishGen.h @@ -12,6 +12,7 @@ #include "cChunkGenerator.h" +#include "cNoise.h" @@ -88,3 +89,34 @@ protected: + +class cFinishGenLilypads : + public cFinishGen +{ +public: + cFinishGenLilypads(int a_Seed) : + m_Noise(a_Seed) + { + } + +protected: + cNoise m_Noise; + + int GetNumLilypads(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; +} ; + + + + + |