summaryrefslogtreecommitdiffstats
path: root/source/Generating/MineShafts.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-29 21:54:24 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-29 21:54:24 +0100
commit674ed9d43ac6c991882c764a04ffe4eb8146a195 (patch)
tree9c404cb7ba202e759a08afef0175a47169c4c363 /source/Generating/MineShafts.h
parentCuboid: Fixed intersection calculation (diff)
downloadcuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar.gz
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar.bz2
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar.lz
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar.xz
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.tar.zst
cuberite-674ed9d43ac6c991882c764a04ffe4eb8146a195.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/MineShafts.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/Generating/MineShafts.h b/source/Generating/MineShafts.h
index 0d9b7436b..a266231d3 100644
--- a/source/Generating/MineShafts.h
+++ b/source/Generating/MineShafts.h
@@ -20,7 +20,10 @@ class cStructGenMineShafts :
public cStructureGen
{
public:
- cStructGenMineShafts(int a_Seed, int a_GridSize, int a_MaxSystemSize);
+ cStructGenMineShafts(
+ int a_Seed, int a_GridSize, int a_MaxSystemSize,
+ int a_ChanceCorridor, int a_ChanceCrossing, int a_ChanceStaircase
+ );
virtual ~cStructGenMineShafts();
@@ -34,9 +37,12 @@ protected:
typedef std::list<cMineShaftSystem *> cMineShaftSystems;
cNoise m_Noise;
- int m_GridSize; ///< Average spacing of the systems
- int m_MaxSystemSize; ///< Maximum blcok size of a mineshaft system
- cMineShaftSystems m_Cache; ///< Cache of the most recently used systems. MoveToFront used.
+ int m_GridSize; ///< Average spacing of the systems
+ int m_MaxSystemSize; ///< Maximum blcok size of a mineshaft system
+ int m_ChanceCorridor; ///< Chance (out of 1000) of a branch object being the corridor
+ int m_ChanceCrossing; ///< Chance (out of 1000) of a branch object being the crossing
+ int m_ChanceStaircase; ///< Chance (out of 1000) of a branch object being the staircase
+ cMineShaftSystems m_Cache; ///< Cache of the most recently used systems. MoveToFront used.
/// Clears everything from the cache
void ClearCache(void);