diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-19 11:14:57 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-19 11:14:57 +0100 |
commit | d43026ddc28829310ba6baf607adce1f54b4f323 (patch) | |
tree | 017248e5f1d0b894ae5a42d6ce7d0c409810d30b /source/Generating/StructGen.h | |
parent | The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Generating/StructGen.h | 6 |
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; |