Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cVerticalLimitNone Class Reference

Limit that accepts any height. More...

Inheritance diagram for cVerticalLimitNone:
Inheritance graph
[legend]
Collaboration diagram for cVerticalLimitNone:
Collaboration graph
[legend]

Public Member Functions

virtual bool CanBeAtHeight (int a_BlockX, int a_BlockZ, int a_Height) override
 Called to inquire whether the specified piece can be placed at the specified height. More...
 
virtual bool InitializeFromString (const AString &a_Params, bool a_LogWarnings) override
 Initializes the limit's parameters from the string representation. More...
 
- Public Member Functions inherited from cPiece::cVerticalLimit
virtual void AssignGens (int a_Seed, cBiomeGen &a_BiomeGen, cTerrainHeightGen &a_TerrainHeightGen, int a_SeaLevel)
 Called when the piece pool is assigned to a generator, so that the limits may bind to the underlying subgenerators. More...
 
virtual ~cVerticalLimit ()
 

Detailed Description

Limit that accepts any height.

The default for all pieces.

Definition at line 58 of file VerticalLimit.cpp.

Member Function Documentation

◆ CanBeAtHeight()

virtual bool cVerticalLimitNone::CanBeAtHeight ( int  a_BlockX,
int  a_BlockZ,
int  a_Height 
)
inlineoverridevirtual

Called to inquire whether the specified piece can be placed at the specified height.

a_BlockX, a_BlockZ is the column of the connector that is being queried. a_Height is the requested height of the piece's lowest block.

Implements cPiece::cVerticalLimit.

Definition at line 62 of file VerticalLimit.cpp.

◆ InitializeFromString()

virtual bool cVerticalLimitNone::InitializeFromString ( const AString a_Params,
bool  a_LogWarnings 
)
inlineoverridevirtual

Initializes the limit's parameters from the string representation.

a_Params is the string containing only the parameters (substring after the first pipe character in the limit description string). Returns true if successful, false if the string parsing failed. If a_LogWarnings is true, any error while parsing the string is output to the server console. Used when loading the limit from a file.

Implements cPiece::cVerticalLimit.

Definition at line 69 of file VerticalLimit.cpp.


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