|
OpenTTD Source 15.0-beta1
|
Enums and other types related to roads. More...
#include "core/enum_type.hpp"Go to the source code of this file.
Typedefs | |
| typedef uint32_t | RoadTypeLabel |
Enumerations | |
| enum | RoadType : uint8_t { ROADTYPE_BEGIN = 0 , ROADTYPE_ROAD = 0 , ROADTYPE_TRAM = 1 , ROADTYPE_END = 63 , INVALID_ROADTYPE = 63 } |
| The different roadtypes we support. More... | |
| enum | RoadTypes : uint64_t { ROADTYPES_NONE = 0 , ROADTYPES_ROAD = 1 << ROADTYPE_ROAD , ROADTYPES_TRAM = 1 << ROADTYPE_TRAM , INVALID_ROADTYPES = UINT64_MAX } |
| The different roadtypes we support, but then a bitmask of them. More... | |
| enum | RoadBits : uint8_t { ROAD_NONE = 0U , ROAD_NW = 1U , ROAD_SW = 2U , ROAD_SE = 4U , ROAD_NE = 8U , ROAD_X = ROAD_SW | ROAD_NE , ROAD_Y = ROAD_NW | ROAD_SE , ROAD_N = ROAD_NE | ROAD_NW , ROAD_E = ROAD_NE | ROAD_SE , ROAD_S = ROAD_SE | ROAD_SW , ROAD_W = ROAD_NW | ROAD_SW , ROAD_ALL = ROAD_X | ROAD_Y , ROAD_END = ROAD_ALL + 1 } |
| Enumeration for the road parts on a tile. More... | |
| enum | DisallowedRoadDirections : uint8_t { DRD_NONE , DRD_SOUTHBOUND , DRD_NORTHBOUND , DRD_BOTH , DRD_END } |
| Which directions are disallowed ? More... | |
Variables | |
| static const RoadTypeLabel | ROADTYPE_LABEL_ROAD = 'ROAD' |
| static const RoadTypeLabel | ROADTYPE_LABEL_TRAM = 'ELRL' |
Enums and other types related to roads.
Definition in file road_type.h.
| typedef uint32_t RoadTypeLabel |
Definition at line 15 of file road_type.h.
| enum DisallowedRoadDirections : uint8_t |
Which directions are disallowed ?
Definition at line 73 of file road_type.h.
| enum RoadBits : uint8_t |
Enumeration for the road parts on a tile.
This enumeration defines the possible road parts which can be build on a tile.
Definition at line 52 of file road_type.h.
| enum RoadType : uint8_t |
The different roadtypes we support.
| Enumerator | |
|---|---|
| ROADTYPE_BEGIN | Used for iterations. |
| ROADTYPE_ROAD | Basic road type. |
| ROADTYPE_TRAM | Trams. |
| ROADTYPE_END | Used for iterations. |
| INVALID_ROADTYPE | flag for invalid roadtype |
Definition at line 25 of file road_type.h.
| enum RoadTypes : uint64_t |
The different roadtypes we support, but then a bitmask of them.
| Enumerator | |
|---|---|
| ROADTYPES_NONE | No roadtypes. |
| ROADTYPES_ROAD | Road. |
| ROADTYPES_TRAM | Trams. |
| INVALID_ROADTYPES | Invalid roadtypes. |
Definition at line 38 of file road_type.h.
|
static |
Definition at line 17 of file road_type.h.
|
static |
Definition at line 18 of file road_type.h.