1
/* $Id: depot_map.h 12754 2008-04-17 19:10:30Z rubidium $ */
3
/** @file depot_map.h Map related accessors for depots. */
10
#include "water_map.h"
11
#include "station_map.h"
14
* Check if a tile is a depot and it is a depot of the given type.
16
static inline bool IsDepotTypeTile(TileIndex tile, TransportType type)
19
default: NOT_REACHED();
21
return IsRailDepotTile(tile);
24
return IsRoadDepotTile(tile);
27
return IsShipDepotTile(tile);
32
* Is the given tile a tile with a depot on it?
33
* @param tile the tile to check
34
* @return true if and only if there is a depot on the tile.
36
static inline bool IsDepotTile(TileIndex tile)
38
return IsRailDepotTile(tile) || IsRoadDepotTile(tile) || IsShipDepotTile(tile) || IsHangarTile(tile);
41
#endif /* DEPOT_MAP_H */