summaryrefslogtreecommitdiffstats
path: root/source/Generating/StructGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-19 11:14:57 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-19 11:14:57 +0100
commitd43026ddc28829310ba6baf607adce1f54b4f323 (patch)
tree017248e5f1d0b894ae5a42d6ce7d0c409810d30b /source/Generating/StructGen.h
parentThe subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator. (diff)
downloadcuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.gz
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.bz2
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.lz
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.xz
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.tar.zst
cuberite-d43026ddc28829310ba6baf607adce1f54b4f323.zip
Diffstat (limited to 'source/Generating/StructGen.h')
-rw-r--r--source/Generating/StructGen.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Generating/StructGen.h b/source/Generating/StructGen.h
index ffb62e327..44f2fc213 100644
--- a/source/Generating/StructGen.h
+++ b/source/Generating/StructGen.h
@@ -96,11 +96,12 @@ class cStructGenLakes :
public cStructureGen
{
public:
- cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGen & a_HeiGen) :
+ cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGen & a_HeiGen, int a_Probability) :
m_Noise(a_Seed),
m_Seed(a_Seed),
m_Fluid(a_Fluid),
- m_HeiGen(a_HeiGen)
+ m_HeiGen(a_HeiGen),
+ m_Probability(a_Probability)
{
}
@@ -109,6 +110,7 @@ protected:
int m_Seed;
BLOCKTYPE m_Fluid;
cTerrainHeightGen & m_HeiGen;
+ int m_Probability; ///< Chance, 0 .. 100, of a chunk having the lake
// cStructureGen override:
virtual void GenStructures(cChunkDesc & a_ChunkDesc) override;