The information about a vehicle list.
static bool IsDepotTile(TileIndex tile)
Is the given tile a tile with a depot on it?
VehicleType
Available vehicle types.
static void Reset(TileIndex tile=INVALID_TILE, bool from_gui=true)
Reset the OrderBackups from GUI/game logic.
static Owner GetTileOwner(TileIndex tile)
Returns the owner of a tile.
static WindowClass GetWindowClassForVehicleType(VehicleType vt)
Get WindowClass for vehicle list of given vehicle type.
Base class for all pools.
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force)
Delete a window by its class and window number (if it is open).
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination, bool hangar)
Removes an order from all vehicles.
@ WC_VEHICLE_DEPOT
Depot view; Window numbers:
DepotPool _depot_pool("Depot")
All our depots tucked away in a pool.
#define INSTANTIATE_POOL_METHODS(name)
Force instantiation of pool methods so we don't get linker errors.
static DepotID GetDepotIndex(TileIndex t)
Get the index of which depot is attached to the tile.
static VehicleType GetDepotVehicleType(TileIndex t)
Get the type of vehicles that can use a depot.