Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Types | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
cMineShaftStaircase Class Reference
Inheritance diagram for cMineShaftStaircase:
Inheritance graph
[legend]
Collaboration diagram for cMineShaftStaircase:
Collaboration graph
[legend]

Public Types

enum  eSlope { sUp , sDown }
 

Static Public Member Functions

static cMineShaft * CreateAndFit (cStructGenMineShafts::cMineShaftSystem &a_ParentSystem, int a_PivotX, int a_PivotY, int a_PivotZ, eDirection a_Direction, cNoise &a_Noise)
 Creates a new Staircase attached to the specified pivot point and direction. More...
 

Protected Member Functions

virtual void AppendBranches (int a_RecursionLevel, cNoise &a_Noise) override
 
 cMineShaftStaircase (cStructGenMineShafts::cMineShaftSystem &a_ParentSystem, const cCuboid &a_BoundingBox, eDirection a_Direction, eSlope a_Slope)
 
virtual void ProcessChunk (cChunkDesc &a_ChunkDesc) override
 

Protected Attributes

eDirection m_Direction
 
eSlope m_Slope
 

Private Types

using Super = cMineShaft
 

Detailed Description

Definition at line 189 of file MineShafts.cpp.

Member Typedef Documentation

◆ Super

using cMineShaftStaircase::Super = cMineShaft
private

Definition at line 192 of file MineShafts.cpp.

Member Enumeration Documentation

◆ eSlope

Enumerator
sUp 
sDown 

Definition at line 196 of file MineShafts.cpp.

Constructor & Destructor Documentation

◆ cMineShaftStaircase()

cMineShaftStaircase::cMineShaftStaircase ( cStructGenMineShafts::cMineShaftSystem a_ParentSystem,
const cCuboid a_BoundingBox,
eDirection  a_Direction,
eSlope  a_Slope 
)
protected

Definition at line 1113 of file MineShafts.cpp.

Member Function Documentation

◆ AppendBranches()

void cMineShaftStaircase::AppendBranches ( int  a_RecursionLevel,
cNoise a_Noise 
)
overrideprotectedvirtual

Definition at line 1177 of file MineShafts.cpp.

◆ CreateAndFit()

cMineShaft * cMineShaftStaircase::CreateAndFit ( cStructGenMineShafts::cMineShaftSystem a_ParentSystem,
int  a_PivotX,
int  a_PivotY,
int  a_PivotZ,
eDirection  a_Direction,
cNoise a_Noise 
)
static

Creates a new Staircase 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 1129 of file MineShafts.cpp.

◆ ProcessChunk()

void cMineShaftStaircase::ProcessChunk ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Definition at line 1193 of file MineShafts.cpp.

Member Data Documentation

◆ m_Direction

eDirection cMineShaftStaircase::m_Direction
protected

Definition at line 213 of file MineShafts.cpp.

◆ m_Slope

eSlope cMineShaftStaircase::m_Slope
protected

Definition at line 214 of file MineShafts.cpp.


The documentation for this class was generated from the following file: