Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Limit that accepts heights that are a specified number of blocks below terrain or sealevel, whichever is higher. More...
Public Member Functions | |
virtual void | AssignGens (int a_Seed, cBiomeGen &a_BiomeGen, cTerrainHeightGen &a_TerrainHeightGen, int a_SeaLevel) override |
Called when the piece pool is assigned to a generator, so that the limits may bind to the underlying subgenerators. More... | |
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 | ~cVerticalLimit () |
Protected Attributes | |
int | m_MaxBlocksBelow |
How many blocks below the terrain level do we accept on maximum. More... | |
int | m_MinBlocksBelow |
How many blocks below the terrain level do we accept on minimum. More... | |
int | m_SeaLevel |
The sealevel for the current world. More... | |
cTerrainHeightGen * | m_TerrainHeightGen |
The underlying height generator. More... | |
Limit that accepts heights that are a specified number of blocks below terrain or sealevel, whichever is higher.
Definition at line 292 of file VerticalLimit.cpp.
|
inlineoverridevirtual |
Called when the piece pool is assigned to a generator, so that the limits may bind to the underlying subgenerators.
Reimplemented from cPiece::cVerticalLimit.
Definition at line 316 of file VerticalLimit.cpp.
|
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 296 of file VerticalLimit.cpp.
|
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 307 of file VerticalLimit.cpp.
|
protected |
How many blocks below the terrain level do we accept on maximum.
Definition at line 333 of file VerticalLimit.cpp.
|
protected |
How many blocks below the terrain level do we accept on minimum.
Definition at line 330 of file VerticalLimit.cpp.
|
protected |
The sealevel for the current world.
Definition at line 327 of file VerticalLimit.cpp.
|
protected |
The underlying height generator.
Definition at line 324 of file VerticalLimit.cpp.