summaryrefslogtreecommitdiffstats
path: root/src/Generating/VillageGen.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-11 22:35:41 +0200
committermadmaxoft <github@xoft.cz>2014-05-11 22:35:41 +0200
commitc0727c426572745c72a61d26a84754d5a641d562 (patch)
treececf665df67dee389cca4fa4bd12bc293b8f4f09 /src/Generating/VillageGen.h
parentMerge pull request #993 from mc-server/GridStructGen (diff)
downloadcuberite-c0727c426572745c72a61d26a84754d5a641d562.tar
cuberite-c0727c426572745c72a61d26a84754d5a641d562.tar.gz
cuberite-c0727c426572745c72a61d26a84754d5a641d562.tar.bz2
cuberite-c0727c426572745c72a61d26a84754d5a641d562.tar.lz
cuberite-c0727c426572745c72a61d26a84754d5a641d562.tar.xz
cuberite-c0727c426572745c72a61d26a84754d5a641d562.tar.zst
cuberite-c0727c426572745c72a61d26a84754d5a641d562.zip
Diffstat (limited to 'src/Generating/VillageGen.h')
-rw-r--r--src/Generating/VillageGen.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/Generating/VillageGen.h b/src/Generating/VillageGen.h
new file mode 100644
index 000000000..d3cc8ef9c
--- /dev/null
+++ b/src/Generating/VillageGen.h
@@ -0,0 +1,48 @@
+
+// VillageGen.h
+
+// Declares the cVillageGen class representing the village generator
+
+
+
+
+
+#pragma once
+
+#include "GridStructGen.h"
+#include "PrefabPiecePool.h"
+
+
+
+
+
+class cVillageGen :
+ public cGridStructGen
+{
+ typedef cGridStructGen super;
+public:
+ cVillageGen(int a_Seed, int a_GridSize, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_HeightGen);
+
+protected:
+ class cVillage; // fwd: VillageGen.cpp
+
+ /** The prefabs for the sand village. We're not exactly using the cPiecePool functionality, only the containment. */
+ static cPrefabPiecePool m_SandVillage;
+
+ /** The prefabs for the plains village. We're not exactly using the cPiecePool functionality, only the containment. */
+ static cPrefabPiecePool m_PlainsVillage;
+
+ /** The underlying biome generator that defines whether the village is created or not */
+ cBiomeGen & m_BiomeGen;
+
+ /** The underlying height generator, used to position the prefabs crossing chunk borders */
+ cTerrainHeightGen & m_HeightGen;
+
+
+ // cGridStructGen overrides:
+ virtual cStructurePtr CreateStructure(int a_OriginX, int a_OriginZ) override;
+} ;
+
+
+
+