22 default: NOT_REACHED();
81 default: NOT_REACHED();
Wrapper class to abstract away the way the tiles are stored.
debug_inline uint16_t & m2()
Primarily used for indices to towns, industries and stations.
DepotID GetDepotIndex(Tile t)
Get the index of which depot is attached to the tile.
bool IsDepotTypeTile(Tile tile, TransportType type)
Check if a tile is a depot and it is a depot of the given type.
bool IsDepotTile(Tile tile)
Is the given tile a tile with a depot on it?
DestinationID GetDepotDestinationIndex(Tile t)
Get the destination index of a 'depot'.
VehicleType GetDepotVehicleType(Tile t)
Get the type of vehicles that can use a depot.
static debug_inline bool IsRailDepotTile(Tile t)
Is this tile rail tile and a rail depot?
static debug_inline bool IsRoadDepotTile(Tile t)
Return whether a tile is a road depot tile.
Maps accessors for stations.
StationID GetStationIndex(Tile t)
Get StationID from a tile.
bool IsHangarTile(Tile t)
Is tile t an hangar tile?
Templated helper to make a PoolID a single POD value.
static debug_inline TileType GetTileType(Tile tile)
Get the tiletype of a given tile.
@ MP_ROAD
A tile with road (or tram tracks)
@ MP_STATION
A tile of a station.
TransportType
Available types of transport.
@ TRANSPORT_RAIL
Transport by train.
@ TRANSPORT_ROAD
Transport by road vehicle.
@ TRANSPORT_WATER
Transport over water.
@ TRANSPORT_AIR
Transport through air.
VehicleType
Available vehicle types.
@ VEH_ROAD
Road vehicle type.
@ VEH_AIRCRAFT
Aircraft vehicle type.
@ VEH_SHIP
Ship vehicle type.
@ VEH_TRAIN
Train vehicle type.
bool IsShipDepotTile(Tile t)
Is it a ship depot tile?