summaryrefslogtreecommitdiffstats
path: root/src/Generating/RainbowRoadsGen.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-05 23:44:31 +0200
committermadmaxoft <github@xoft.cz>2014-06-07 13:59:50 +0200
commitec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b (patch)
treec988a4be63b666d18fc0fdbe56a164a133b5529c /src/Generating/RainbowRoadsGen.h
parentFurther improvements on redstone speed (diff)
downloadcuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar.gz
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar.bz2
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar.lz
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar.xz
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.tar.zst
cuberite-ec40c7c83ad1ef62b2c8e759bd9a76cf916f5e5b.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/RainbowRoadsGen.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Generating/RainbowRoadsGen.h b/src/Generating/RainbowRoadsGen.h
new file mode 100644
index 000000000..acbd5abf9
--- /dev/null
+++ b/src/Generating/RainbowRoadsGen.h
@@ -0,0 +1,47 @@
+
+// RainbowRoadsGen.h
+
+// Declares the cRainbowRoadsGen class representing the underwater base generator
+
+
+
+
+
+#pragma once
+
+#include "GridStructGen.h"
+#include "PrefabPiecePool.h"
+
+
+
+
+
+class cRainbowRoadsGen :
+ public cGridStructGen
+{
+ typedef cGridStructGen super;
+
+public:
+ cRainbowRoadsGen(int a_Seed, int a_GridSize, int a_MaxDepth, int a_MaxSize);
+
+protected:
+ class cRainbowRoads; // fwd: RainbowRoadsGen.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 base (radius from the origin) */
+ int m_MaxSize;
+
+
+ // cGridStructGen overrides:
+ virtual cStructurePtr CreateStructure(int a_OriginX, int a_OriginZ) override;
+} ;
+
+
+
+