diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 16:17:47 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 16:17:47 +0200 |
commit | 79fddd3be017b16f2d662441a92b26c2c6dc5b11 (patch) | |
tree | 581c9d227c71ab1ef4d6a68a81153d6770374b4a /source/BioGen.h | |
parent | DebugBiomes composition generator now uses only blocks suitable for terrain (from an internal list) (diff) | |
download | cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.gz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.bz2 cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.lz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.xz cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.tar.zst cuberite-79fddd3be017b16f2d662441a92b26c2c6dc5b11.zip |
Diffstat (limited to 'source/BioGen.h')
-rw-r--r-- | source/BioGen.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/BioGen.h b/source/BioGen.h index 659470af2..691ab9d90 100644 --- a/source/BioGen.h +++ b/source/BioGen.h @@ -15,6 +15,7 @@ Interfaces to the various biome generators: #pragma once
#include "cChunkGenerator.h"
+#include "cNoise.h"
@@ -100,3 +101,30 @@ protected: +
+class cBioGenVoronoi :
+ public cBiomeGenList
+{
+public:
+ cBioGenVoronoi(int a_Seed, int a_CellSize, const AString & a_Biomes) :
+ cBiomeGenList(a_Biomes),
+ m_CellSize(a_CellSize),
+ m_Noise(a_Seed)
+ {
+ }
+
+protected:
+
+ int m_CellSize;
+
+ cNoise m_Noise;
+
+ // cBiomeGen override:
+ virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
+
+ EMCSBiome VoronoiBiome(int a_BlockX, int a_BlockZ);
+} ;
+
+
+
+
|