QcMineshaftDetails Class
Furnishes the corridors of a laid out mine shaft (decision E-570): spawners in the middle of corridors without rails, against a wall off any support (a spawner in the middle lane beside a support would close the corridor: the beam leaves no room to jump onto it), thick with cobwebs around; rails along other corridors, some with a chest minecart; supports (posts and a beam) and, under bridges, their pillars; lights on the beams away from every spawn area; cobwebs in the upper corners and a few lower down. More...
| Header: | #include <worldgen/mineshafts/QcMineshaftDetails.h> |
Public Types
| struct | Furnishing |
| Random |
Public Functions
| QcMineshaftDetails(const QcMineshaftSettings &settings, const QcMineshaftBlocks &blocks, bool carts) | |
| QcMineshaftDetails::Furnishing | furnish(const QcMineshaftPlan &plan, const QcMineshaftDetails::Random &random) const |
Detailed Description
Nothing goes into a room from a structure.
Member Type Documentation
[alias] QcMineshaftDetails::Random
A random value in [0, 1) for a purpose and an index.
Member Function Documentation
QcMineshaftDetails::QcMineshaftDetails(const QcMineshaftSettings &settings, const QcMineshaftBlocks &blocks, bool carts)
Furnishes with the blocks blocks and the chances and kinds of settings. carts: whether the content has the cart item (QcSpawnerContent warns otherwise).
QcMineshaftDetails::Furnishing QcMineshaftDetails::furnish(const QcMineshaftPlan &plan, const QcMineshaftDetails::Random &random) const
Returns the furnishing of the laid out plan, with the chances drawn from random: spawners first, then rails, supports, lights and cobwebs.