diff options
Diffstat (limited to 'src/Generating/FinishGen.h')
-rw-r--r-- | src/Generating/FinishGen.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Generating/FinishGen.h b/src/Generating/FinishGen.h index 0138c84bc..b6edce84f 100644 --- a/src/Generating/FinishGen.h +++ b/src/Generating/FinishGen.h @@ -260,14 +260,24 @@ class cFinishGenSprinkleFoliage : public cFinishGen { public: - cFinishGenSprinkleFoliage(int a_Seed) : m_Noise(a_Seed), m_Seed(a_Seed) {} - + cFinishGenSprinkleFoliage(int a_Seed, int a_MaxCactusHeight, int a_MaxSugarcaneHeight): + m_Noise(a_Seed), + m_Seed(a_Seed), + m_MaxCactusHeight(a_MaxCactusHeight), + m_MaxSugarcaneHeight(a_MaxSugarcaneHeight) + { + } protected: cNoise m_Noise; int m_Seed; + int m_MaxCactusHeight; + int m_MaxSugarcaneHeight; + + /** Tries to place sugarcane at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY) */ + bool TryAddSugarcane(cChunkDesc & a_ChunkDesc, int a_RelX, HEIGHTTYPE & a_RelY, int a_RelZ); - /** Tries to place sugarcane at the coords specified, returns true if successful */ - bool TryAddSugarcane(cChunkDesc & a_ChunkDesc, int a_RelX, int a_RelY, int a_RelZ); + /** Tries to place cactus at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY) */ + bool TryAddCactus(cChunkDesc & a_ChunkDesc, int a_RelX, HEIGHTTYPE & a_RelY, int a_RelZ); // Returns true is the specified biome is a desert or its variant static bool IsDesertVariant(EMCSBiome a_biome); |