diff options
author | madmaxoft <github@xoft.cz> | 2014-05-12 22:43:59 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-12 22:43:59 +0200 |
commit | 9c8e8ef7aece2f881ef97c387600c8a751579b20 (patch) | |
tree | c6a67f3c0523140b749a6e7f9a82ac79bb596938 /src/Generating/VillageGen.h | |
parent | Initial VillageGen implementation. (diff) | |
download | cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.gz cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.bz2 cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.lz cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.xz cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.zst cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.zip |
Diffstat (limited to 'src/Generating/VillageGen.h')
-rw-r--r-- | src/Generating/VillageGen.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Generating/VillageGen.h b/src/Generating/VillageGen.h index d3cc8ef9c..acbd76881 100644 --- a/src/Generating/VillageGen.h +++ b/src/Generating/VillageGen.h @@ -21,7 +21,7 @@ class cVillageGen : { typedef cGridStructGen super; public: - cVillageGen(int a_Seed, int a_GridSize, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_HeightGen); + cVillageGen(int a_Seed, int a_GridSize, int a_MaxRoadDepth, int a_MaxSize, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_HeightGen); protected: class cVillage; // fwd: VillageGen.cpp @@ -31,6 +31,12 @@ protected: /** The prefabs for the plains village. We're not exactly using the cPiecePool functionality, only the containment. */ static cPrefabPiecePool m_PlainsVillage; + + /** Maximum number of roads generated one from another (tree depth). */ + int m_MaxRoadDepth; + + /** Maximum size, in X/Z blocks, of the village (radius from the origin) */ + int m_MaxSize; /** The underlying biome generator that defines whether the village is created or not */ cBiomeGen & m_BiomeGen; |