summaryrefslogtreecommitdiffstats
path: root/source/BioGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:51:04 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:51:04 +0200
commitba2f0c6229870fd7c1d0b0f530dd1567d43e4e03 (patch)
treefc807d61b7656133a59a1113cbbda65d4bfed53f /source/BioGen.h
parentImproved logging on mis-configuration in cPlayer and cWorldStorage (diff)
downloadcuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.gz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.bz2
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.lz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.xz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.zst
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.zip
Diffstat (limited to '')
-rw-r--r--source/BioGen.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/BioGen.h b/source/BioGen.h
index 316399436..b44d8fdf4 100644
--- a/source/BioGen.h
+++ b/source/BioGen.h
@@ -60,12 +60,23 @@ class cBioGenCheckerboard :
public cBiomeGen
{
public:
- cBioGenCheckerboard(int a_BiomeSize) : m_BiomeSize((a_BiomeSize < 8) ? 8 : a_BiomeSize) {}
+ cBioGenCheckerboard(int a_BiomeSize, const AString & a_Biomes) :
+ m_BiomeSize((a_BiomeSize < 8) ? 8 : a_BiomeSize)
+ {
+ InitializeBiomes(a_Biomes);
+ }
protected:
int m_BiomeSize;
+ // List of biomes that the generator is allowed to generate:
+ typedef std::vector<EMCSBiome> EMCSBiomes;
+ EMCSBiomes m_Biomes;
+ int m_BiomesCount;
+
+ void InitializeBiomes(const AString & a_Biomes);
+
// cBiomeGen override:
virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
} ;