QcTreeShape::Params Struct
struct QcTreeShape::ParamsThe shape of one feature with its blocks resolved, as paramsOf() reads it from a feature definition. More...
| Header: | #include <worldgen/terrain/QcTreeShape.h> |
Public Functions
| bool | giant() const |
Public Variables
| QcTreeShape::Crown | crown |
| QcBlockId | leaves |
| int | maxHeight |
| int | minHeight |
| QcBlockId | trunk |
| QcBlockId | trunkX |
| QcBlockId | trunkZ |
| QcFeatureDefinition::Type | type |
| std::array<QcBlockId, 4> | vines |
Detailed Description
Member Function Documentation
bool Params::giant() const
Returns whether the crown is a giant one. Giant trees stand on four trunk blocks: base and the blocks east, south and south-east of it.
Member Variable Documentation
QcTreeShape::Crown Params::crown
The crown of a tree.
QcBlockId Params::leaves
The leaves of the crown.
QcBlockId Params::trunk
The trunk block (the block of a plant).
QcFeatureDefinition::Type Params::type
The kind of feature: a tree gets a crown and vines, a column only its trunk, a plant one block.
std::array<QcBlockId, 4> Params::vines
Vines hung on the trunk and the lowest leaves, one state per side the vine holds on to (north, east, south, west); air when the tree has none.