#define Y
Climate toyland.
Type (helpers) for enums.
EnumClassIndexContainer< std::array< T, to_underlying(N)>, Index > EnumIndexArray
A typedef for EnumClassIndexContainer using std::array as the backing container type.
TrackdirBits signals
Red signals on the tile.
TrackdirBits trackdirs
Trackdirs present on the tile.
static constexpr TrackBits TRACK_BIT_3WAY_NE
"Arrow" to the north-east
EnumIndexArray< T, Track, Track::End > TrackIndexArray
Array with Track as index.
static constexpr TrackBits TRACK_BIT_HORZ
Upper and lower track.
EnumBitSet< Trackdir, uint16_t > TrackdirBits
Bitset of Trackdir elements.
EnumBitSet< Track, uint8_t > TrackBits
Bitset of Track elements.
static constexpr TrackBits TRACK_BIT_ALL
All possible tracks.
static constexpr TrackdirBits INVALID_TRACKDIR_BIT
Marker for an invalid TrackdirBits value.
Trackdir
Enumeration for tracks and directions.
@ Right_N
Right track and direction to north.
@ X_NE
X-axis and direction to north-east.
@ Right_S
Right track and direction to south.
@ Left_S
Left track and direction to south.
@ Lower_E
Lower track and direction to east.
@ X_SW
X-axis and direction to south-west.
@ Y_SE
Y-axis and direction to south-east.
@ RvRev_NW
(Road vehicle) reverse direction north-west
@ Y_NW
Y-axis and direction to north-west.
@ Upper_W
Upper track and direction to west.
@ RvRev_NE
(Road vehicle) reverse direction north-east
@ Upper_E
Upper track and direction to east.
@ RvRev_SW
(Road vehicle) reverse direction south-west
@ Left_N
Left track and direction to north.
@ Lower_W
Lower track and direction to west.
@ RvRev_SE
(Road vehicle) reverse direction south-east
static constexpr TrackBits TRACK_BIT_VERT
Left and right track.
static constexpr TrackBits TRACK_BIT_CROSS
X-Y-axis cross.
static constexpr TrackdirBits TRACKDIR_BIT_MASK
Bitset of valid non-road vehicle trackdirs/.
static constexpr TrackBits TRACK_BIT_3WAY_SW
"Arrow" to the south-west
static constexpr TrackBits TRACK_BIT_3WAY_SE
"Arrow" to the south-east
EnumIndexArray< T, Trackdir, Trackdir::End > TrackdirIndexArray
Array with Trackdir as index.
static constexpr TrackBits TRACK_BIT_3WAY_NW
"Arrow" to the north-west
Track
These are used to specify a single track.
@ X
Track along the x-axis (north-east to south-west).
@ Upper
Track in the upper corner of the tile (north).
@ Begin
Used for iterations.
@ Invalid
Flag for an invalid track.
@ Y
Track along the y-axis (north-west to south-east).
@ End
End marker (of regular track bits).
@ Right
Track in the right corner of the tile (east).
@ Left
Track in the left corner of the tile (west).
@ Lower
Track in the lower corner of the tile (south).
@ Wormhole
Special flag indicating vehicle is inside a bridge or tunnel.