diff options
author | madmaxoft <github@xoft.cz> | 2014-05-22 21:47:56 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-22 21:47:56 +0200 |
commit | 6aa7df367f8db7506a8a5ab853c26e3c9fd60253 (patch) | |
tree | d869d17b349aa2fffc676224f5aee2f9c17b59f1 /src/Generating/VillageGen.h | |
parent | Updated plains village prefabs. (diff) | |
download | cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.gz cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.bz2 cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.lz cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.xz cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.tar.zst cuberite-6aa7df367f8db7506a8a5ab853c26e3c9fd60253.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/VillageGen.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Generating/VillageGen.h b/src/Generating/VillageGen.h index c6f8f024a..5faaae8a6 100644 --- a/src/Generating/VillageGen.h +++ b/src/Generating/VillageGen.h @@ -21,16 +21,25 @@ class cVillageGen : { typedef cGridStructGen super; public: - cVillageGen(int a_Seed, int a_GridSize, int a_MaxDepth, int a_MaxSize, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_HeightGen); + cVillageGen(int a_Seed, int a_GridSize, int a_MaxDepth, int a_MaxSize, int a_MinDensity, int a_MaxDensity, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_HeightGen); protected: class cVillage; // fwd: VillageGen.cpp + /** The noise used for generating random numbers */ + cNoise m_Noise; + /** Maximum depth of the generator tree*/ int m_MaxDepth; /** Maximum size, in X/Z blocks, of the village (radius from the origin) */ int m_MaxSize; + + /** Minimum density - percentage of allowed house connections. Range [0, 100] */ + int m_MinDensity; + + /** Maximum density - percentage of allowed house connections. Range [0, 100] */ + int m_MaxDensity; /** The underlying biome generator that defines whether the village is created or not */ cBiomeGen & m_BiomeGen; |