OpenTTD Source
20240919-master-gdf0233f4c2
|
The information about a vehicle list.
void CloseWindowById(WindowClass cls, WindowNumber number, bool force, int data)
Close a window by its class and window number (if it is open).
Owner GetTileOwner(Tile tile)
Returns the owner of a tile.
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.
static void Reset(TileIndex tile=INVALID_TILE, bool from_gui=true)
Reset the OrderBackups from GUI/game logic.
VehicleType GetDepotVehicleType(Tile t)
Get the type of vehicles that can use a depot.
Base class for all pools.
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.
VehicleType
Available vehicle types.
WindowClass GetWindowClassForVehicleType(VehicleType vt)
Get WindowClass for vehicle list of given vehicle type.