Definition at line 108 of file MineShafts.cpp.
◆ Super
◆ cMineShaftCorridor()
◆ AppendBranches()
void cMineShaftCorridor::AppendBranches |
( |
int |
a_RecursionLevel, |
|
|
cNoise & |
a_Noise |
|
) |
| |
|
overrideprotectedvirtual |
◆ CreateAndFit()
Creates a new Corridor attached to the specified pivot point and direction.
Checks all ParentSystem's objects and disallows intersecting. Initializes the new object to fit. May return nullptr if cannot fit.
Definition at line 539 of file MineShafts.cpp.
◆ PlaceChest()
void cMineShaftCorridor::PlaceChest |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
protected |
Places a chest, if the corridor has one.
Definition at line 746 of file MineShafts.cpp.
◆ PlaceSpawner()
void cMineShaftCorridor::PlaceSpawner |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
protected |
If this corridor has a spawner, places the spawner.
Definition at line 854 of file MineShafts.cpp.
◆ PlaceTorches()
void cMineShaftCorridor::PlaceTorches |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
protected |
Randomly places torches around the central beam block.
Definition at line 894 of file MineShafts.cpp.
◆ PlaceTracks()
void cMineShaftCorridor::PlaceTracks |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
protected |
If this corridor has tracks, places them randomly.
Definition at line 817 of file MineShafts.cpp.
◆ ProcessChunk()
void cMineShaftCorridor::ProcessChunk |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
overrideprotectedvirtual |
◆ m_ChestPosition
int cMineShaftCorridor::m_ChestPosition |
|
protected |
If <0, no chest; otherwise an offset from m_BoundingBox's p1.x or p1.z, depenging on m_Direction.
Definition at line 130 of file MineShafts.cpp.
◆ m_Direction
eDirection cMineShaftCorridor::m_Direction |
|
protected |
◆ m_HasFullBeam
If true, segment at that index has a full beam support (planks in the top center block)
Definition at line 129 of file MineShafts.cpp.
◆ m_HasTracks
bool cMineShaftCorridor::m_HasTracks |
|
protected |
If true, random tracks will be placed on the floor.
Definition at line 132 of file MineShafts.cpp.
◆ m_NumSegments
int cMineShaftCorridor::m_NumSegments |
|
protected |
◆ m_SpawnerPosition
int cMineShaftCorridor::m_SpawnerPosition |
|
protected |
If <0, no spawner; otherwise an offset from m_BoundingBox's p1.x or p1.z, depenging on m_Direction.
Definition at line 131 of file MineShafts.cpp.
◆ MAX_SEGMENTS
const int cMineShaftCorridor::MAX_SEGMENTS = 5 |
|
staticprotected |
The documentation for this class was generated from the following file: