|
OpenTTD Source
1.10.0-RC1
|
Map related accessors for depots. More...
#include "station_map.h"Go to the source code of this file.
Functions | |
| static bool | IsDepotTypeTile (TileIndex tile, TransportType type) |
| Check if a tile is a depot and it is a depot of the given type. | |
| static bool | IsDepotTile (TileIndex tile) |
| Is the given tile a tile with a depot on it? More... | |
| static DepotID | GetDepotIndex (TileIndex t) |
| Get the index of which depot is attached to the tile. More... | |
| static VehicleType | GetDepotVehicleType (TileIndex t) |
| Get the type of vehicles that can use a depot. More... | |
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.
Referenced by Train::FindClosestDepot(), FixTTDDepots(), GetOrderCmdFromTile(), DepotWindow::OnQueryTextFinished(), DepotWindow::SetStringParameters(), and Depot::~Depot().
|
inlinestatic |
Get the type of vehicles that can use a depot.
| t | The tile |
Definition at line 65 of file depot_map.h.
References GetTileType().
Referenced by CmdBuildVehicle(), and CmdRenameDepot().
|
inlinestatic |
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 CmdBuildVehicle(), CmdDepotMassAutoReplace(), FixTTDDepots(), and Depot::~Depot().