diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-21 20:27:11 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-21 20:27:11 +0200 |
commit | ede0f13b51db0a1aaf69a80708962341b971cc34 (patch) | |
tree | f8051edd858435791b0edcea1ca36192d8179afb /src/Generating/TestRailsGen.h | |
parent | Updated CONTRIBUTORS file (diff) | |
parent | Added a TestRails generator. (diff) | |
download | cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.gz cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.bz2 cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.lz cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.xz cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.zst cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.zip |
Diffstat (limited to 'src/Generating/TestRailsGen.h')
-rw-r--r-- | src/Generating/TestRailsGen.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Generating/TestRailsGen.h b/src/Generating/TestRailsGen.h new file mode 100644 index 000000000..5b0ce95f4 --- /dev/null +++ b/src/Generating/TestRailsGen.h @@ -0,0 +1,47 @@ + +// TestRailsGen.h + +// Declares the cTestRailsGen class representing the testing rails generator + + + + + +#pragma once + +#include "GridStructGen.h" +#include "PrefabPiecePool.h" + + + + + +class cTestRailsGen : + public cGridStructGen +{ + typedef cGridStructGen super; + +public: + cTestRailsGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth, int a_MaxSize); + +protected: + class cTestRails; // fwd: TestRailsGen.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_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override; +} ; + + + + |