OpenTTD Source 20241224-master-gf74b0cf984
|
Map related accessors for depots. More...
#include "station_map.h"
Go to the source code of this file.
Functions | |
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? | |
DepotID | GetDepotIndex (Tile t) |
Get the index of which depot is attached to the tile. | |
VehicleType | GetDepotVehicleType (Tile t) |
Get the type of vehicles that can use a depot. | |
Map related accessors for depots.
Definition in file depot_map.h.
Get the index of which depot is attached to the tile.
t | the tile |
Definition at line 52 of file depot_map.h.
References IsRailDepotTile(), IsRoadDepotTile(), IsShipDepotTile(), and Tile::m2().
Referenced by CheckIfTrainNeedsService(), RoadVehicle::FindClosestDepot(), Train::FindClosestDepot(), FixTTDDepots(), GetOrderCmdFromTile(), and Depot::~Depot().
|
inline |
Get the type of vehicles that can use a depot.
t | The tile |
Definition at line 65 of file depot_map.h.
References GetTileType(), MP_RAILWAY, MP_ROAD, MP_STATION, MP_WATER, VEH_AIRCRAFT, VEH_ROAD, VEH_SHIP, and VEH_TRAIN.
Referenced by CmdBuildVehicle(), CmdRenameDepot(), and Depot::~Depot().
|
inline |
Is the given tile a tile with a depot on it?
tile | the tile to check |
Definition at line 41 of file depot_map.h.
References IsHangarTile(), IsRailDepotTile(), IsRoadDepotTile(), and IsShipDepotTile().
Referenced by AfterLoadGame(), CmdBuildVehicle(), CmdDepotMassAutoReplace(), CmdDepotSellAllVehicles(), CmdMassStartStopVehicle(), FixTTDDepots(), Vehicle::ShowVisualEffect(), and Depot::~Depot().
|
inline |
Check if a tile is a depot and it is a depot of the given type.
Definition at line 18 of file depot_map.h.
References IsHangarTile(), IsRailDepotTile(), IsRoadDepotTile(), IsShipDepotTile(), TRANSPORT_AIR, TRANSPORT_RAIL, TRANSPORT_ROAD, and TRANSPORT_WATER.
Referenced by CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanEnterNewTile(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanExitOldTile(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::ForcedReverse(), GetOrderCmdFromTile(), and GroundVehicle< T, Type >::IsChainInDepot().