![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Go to the source code of this file.
Classes | |
class | cVerticalStrategyFixed |
A vertical strategy that places the piece at a predefined height. More... | |
class | cVerticalStrategyRange |
A vertical strategy that places the piece in a random height between two heights. More... | |
class | cVerticalStrategyTerrainOrOceanTop |
A vertical strategy that places the piece within a range on top of the terrain or ocean, whichever's higher. More... | |
class | cVerticalStrategyTerrainTop |
A vertical strategy that places the piece in a specified range relative to the top of the terrain. More... | |
Namespaces | |
VerticalStrategy | |
Parses a string containing a range in which both values are optional ("<MinHeight>|<MaxHeight>") into Min, Range. | |
Functions | |
cPiece::cVerticalStrategyPtr | CreateVerticalStrategyFromString (const AString &a_StrategyDesc, bool a_LogWarnings) |
Returns a new cPiece::cVerticalStrategy descendant based on the specified description. More... | |
static bool | VerticalStrategy::ParseRange (const AString &a_Params, int &a_Min, int &a_Range, bool a_LogWarnings) |
Variables | |
static const int | SEED_OFFSET = 135 |
cPiece::cVerticalStrategyPtr CreateVerticalStrategyFromString | ( | const AString & | a_StrategyDesc, |
bool | a_LogWarnings | ||
) |
Returns a new cPiece::cVerticalStrategy descendant based on the specified description.
a_StrategyDesc is in the format "<StrategyClass>|<Params>". The params and the pipe may be omitted. If an unknown class is requested or the param parsing fails, nullptr is returned.
Definition at line 284 of file VerticalStrategy.cpp.
|
static |
Definition at line 15 of file VerticalStrategy.cpp.