blob: 6c137fed8a7bfcdc8d4ca645fee71ee053b2f16a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// MineShafts.h
// Declares the cStructGenMineShafts class representing the structure generator for abandoned mineshafts
#pragma once
#include "GridStructGen.h"
class cStructGenMineShafts :
public cGridStructGen
{
typedef cGridStructGen Super;
public:
cStructGenMineShafts(
int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxSystemSize,
int a_ChanceCorridor, int a_ChanceCrossing, int a_ChanceStaircase
);
protected:
friend class cMineShaft;
friend class cMineShaftDirtRoom;
friend class cMineShaftCorridor;
friend class cMineShaftCrossing;
friend class cMineShaftStaircase;
class cMineShaftSystem; // fwd: MineShafts.cpp
int m_GridSize; ///< Average spacing of the systems
int m_MaxSystemSize; ///< Maximum block size of a mineshaft system
int m_ProbLevelCorridor; ///< Probability level of a branch object being the corridor
int m_ProbLevelCrossing; ///< Probability level of a branch object being the crossing, minus Corridor
int m_ProbLevelStaircase; ///< Probability level of a branch object being the staircase, minus Crossing
// cGridStructGen overrides:
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
} ;
|