summaryrefslogtreecommitdiffstats
path: root/src/Generating/BioGen.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-28 19:58:20 +0100
committermadmaxoft <github@xoft.cz>2013-11-28 20:00:30 +0100
commitbdd86d7934e95ee1db54531b51431554d5b91796 (patch)
tree7a7c8b58d6f33f0ee3bdfda2e717d4d56ed36b72 /src/Generating/BioGen.h
parentBiomeVisualiser: The biome settings are read from a file. (diff)
downloadcuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar.gz
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar.bz2
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar.lz
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar.xz
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.tar.zst
cuberite-bdd86d7934e95ee1db54531b51431554d5b91796.zip
Diffstat (limited to 'src/Generating/BioGen.h')
-rw-r--r--src/Generating/BioGen.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Generating/BioGen.h b/src/Generating/BioGen.h
index 892168bb6..8bd460d8f 100644
--- a/src/Generating/BioGen.h
+++ b/src/Generating/BioGen.h
@@ -239,3 +239,41 @@ protected:
+
+class cBioGenTwoLevel :
+ public cBiomeGen
+{
+ typedef cBiomeGen super;
+
+public:
+ cBioGenTwoLevel(int a_Seed);
+
+protected:
+ /// The Voronoi map that decides the groups of biomes
+ cVoronoiMap m_VoronoiLarge;
+
+ /// The Voronoi map that decides biomes inside individual biome groups
+ cVoronoiMap m_VoronoiSmall;
+
+ /// The noise used to distort the input X coord
+ cPerlinNoise m_DistortX;
+
+ /// The noise used to distort the inupt Z coord
+ cPerlinNoise m_DistortZ;
+
+ cNoise m_Noise;
+
+
+ // cBiomeGen overrides:
+ virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
+ virtual void InitializeBiomeGen(cIniFile & a_IniFile) override;
+
+ /// Selects biome from the specified biome group, based on the specified index.
+ /// Note that both params may overflow
+ /// a_DistLevel is either 0 or 1; zero when it is at the edge of the small Voronoi cell, 1 near the center
+ EMCSBiome SelectBiome(int a_BiomeGroup, int a_BiomeIdx, int a_DistLevel);
+} ;
+
+
+
+