QcRoadLayer::Arm Struct
struct QcRoadLayer::ArmA road to lay: from (x, z) length cells in direction (an index into QcVillageDraft::directions), turning by bends (distance along it, eighths of a turn; positive clockwise), winding with the terrain, cut short at water, steep steps, pieces and the radius. More...
Public Variables
| QList<std::pair<int, int>> | bends |
| bool | branch |
| bool | closed |
| int | direction |
| int | firstSlot |
| int | length |
| int | sides |
| bool | winding |
| int | x |
| int | z |
Detailed Description
Member Variable Documentation
QList<std::pair<int, int>> Arm::bends
The bends: distance along the road and turn in eighths of a turn (positive clockwise).
bool Arm::branch
A side road (QcVillageDraft::Road::branch of its runs).
bool Arm::closed
Laid only in full, without a road end (a ring back to its first cell, a plaza's spoke).
int Arm::direction
The first direction, an index into QcVillageDraft::directions.
int Arm::firstSlot
Pieces start this far along the road; before it pieces do not end the road, and a road laid no further than this is dropped.
int Arm::length
The cells to lay (a bridge at the end goes on to the far bank).
int Arm::sides
Sides that take pieces (QcVillageDraft::Road::sides of its runs).
bool Arm::winding
Whether the road turns by an eighth towards flatter ground every few cells.