summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-20 16:23:45 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-20 16:23:45 +0200
commit7bf9da74413c69cbd79a9db81ba098e13b847904 (patch)
treee70ab8bf3ac4824cac31ae28e2f77eaa12ecdc33 /src/Generating/FinishGen.h
parentPass cItem by reference. (diff)
downloadcuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar.gz
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar.bz2
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar.lz
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar.xz
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.tar.zst
cuberite-7bf9da74413c69cbd79a9db81ba098e13b847904.zip
Diffstat (limited to 'src/Generating/FinishGen.h')
-rw-r--r--src/Generating/FinishGen.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.h b/src/Generating/FinishGen.h
index 2e5732929..ea322c7ae 100644
--- a/src/Generating/FinishGen.h
+++ b/src/Generating/FinishGen.h
@@ -69,6 +69,44 @@ protected:
+class cFinishGenFoliage :
+ public cFinishGen
+{
+public:
+ cFinishGenFoliage(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;
+
+ float GetBiomeDensity(EMCSBiome a_Biome)
+ {
+ switch (a_Biome)
+ {
+ case biSavanna:
+ case biSavannaM:
+ case biSavannaPlateau:
+ case biSavannaPlateauM:
+ case biPlains:
+ {
+ return 0.0;
+ }
+ default:
+ {
+ return -0.4;
+ }
+ }
+ return -0.3;
+ }
+};
+
+
+
+
+
class cFinishGenSprinkleFoliage :
public cFinishGen
{