15typedef uint32_t RoadTypeLabel;
17static const RoadTypeLabel ROADTYPE_LABEL_ROAD =
'ROAD';
18static const RoadTypeLabel ROADTYPE_LABEL_TRAM =
'ELRL';
Type (helpers) for enums.
#define DECLARE_INCREMENT_DECREMENT_OPERATORS(enum_type)
For some enums it is useful to have pre/post increment/decrement operators.
EnumBitSet< RoadTramType, uint8_t > RoadTramTypes
Bitset of RoadTramType elements.
static constexpr RoadBits ROAD_W
Road at the two western edges.
static constexpr RoadBits ROAD_X
Full road along the x-axis (south-west + north-east).
DisallowedRoadDirection
Which directions are disallowed ?
@ Northbound
All northbound traffic is disallowed.
@ Southbound
All southbound traffic is disallowed.
EnumBitSet< RoadBit, uint8_t > RoadBits
Bitset of RoadBit elements.
static constexpr RoadBits ROAD_E
Road at the two eastern edges.
RoadBit
Enumeration for the road parts on a tile.
EnumBitSet< DisallowedRoadDirection, uint8_t > DisallowedRoadDirections
Bitset of DisallowedRoadDirection elements.
static constexpr RoadBits ROAD_ALL
Full 4-way crossing.
static constexpr RoadBits ROAD_Y
Full road along the y-axis (north-west + south-east).
static constexpr RoadTramTypes ROADTRAMTYPES_ALL
All possible RoadTramTypes.
static constexpr RoadBits ROAD_N
Road at the two northern edges.
RoadType
The different roadtypes we support.
@ INVALID_ROADTYPE
flag for invalid roadtype
@ ROADTYPE_ROAD
Basic road type.
@ ROADTYPE_END
Used for iterations.
@ ROADTYPE_BEGIN
Used for iterations.
static constexpr RoadBits ROAD_S
Road at the two southern edges.
RoadTramType
The different types of road type.