summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-21 18:18:54 +0200
committermadmaxoft <github@xoft.cz>2014-07-21 18:18:54 +0200
commit7672418ca8b22e6aca450eb26466d75c84f343a9 (patch)
tree805d761da0bf43c9f96fd22894c638c195ea59a5 /src/Generating/FinishGen.h
parentDefines.h: Fixed a warning. (diff)
parentFixed a missing enter. (diff)
downloadcuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar.gz
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar.bz2
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar.lz
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar.xz
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.tar.zst
cuberite-7672418ca8b22e6aca450eb26466d75c84f343a9.zip
Diffstat (limited to 'src/Generating/FinishGen.h')
-rw-r--r--src/Generating/FinishGen.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.h b/src/Generating/FinishGen.h
index fdeb86e73..a8a0e1e3b 100644
--- a/src/Generating/FinishGen.h
+++ b/src/Generating/FinishGen.h
@@ -69,6 +69,43 @@ protected:
+class cFinishGenTallGrass :
+ public cFinishGen
+{
+public:
+ cFinishGenTallGrass(int a_Seed) : m_Noise(a_Seed), m_Seed(a_Seed) {}
+
+protected:
+ cNoise m_Noise;
+ int m_Seed;
+
+ // cFinishGen override:
+ virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;
+
+ int GetBiomeDensity(EMCSBiome a_Biome)
+ {
+ switch (a_Biome)
+ {
+ case biSavanna:
+ case biSavannaM:
+ case biSavannaPlateau:
+ case biSavannaPlateauM:
+ case biPlains:
+ {
+ return 70;
+ }
+ default:
+ {
+ return 20;
+ }
+ }
+ }
+};
+
+
+
+
+
class cFinishGenSprinkleFoliage :
public cFinishGen
{