32 if (CleaningPool())
return;
The information about a vehicle list.
Functions and type for generating vehicle lists.
Depot view; Window numbers:
Base for all depots (except hangars)
Functions related to orders.
Functions related to the vehicle's GUIs.
Some methods of Pool are placed here in order to reduce compilation time and binary size...
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination)
Removes an order from all vehicles.
VehicleType
Available vehicle types.
static Owner GetTileOwner(TileIndex tile)
Returns the owner of a tile.
Definition of base types and functions in a cross-platform compatible way.
A number of safeguards to prevent using unsafe methods.
Functions related to order backups.
static VehicleType GetDepotVehicleType(TileIndex t)
Get the type of vehicles that can use a depot.
static DepotID GetDepotIndex(TileIndex t)
Get the index of which depot is attached to the tile.
Base class for all pools.
static void Reset(TileIndex tile=INVALID_TILE, bool from_gui=true)
Reset the OrderBackups from GUI/game logic.
#define INSTANTIATE_POOL_METHODS(name)
Force instantiation of pool methods so we don't get linker errors.
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force)
Delete a window by its class and window number (if it is open).
DepotPool _depot_pool("Depot")
All our depots tucked away in a pool.
static WindowClass GetWindowClassForVehicleType(VehicleType vt)
Get WindowClass for vehicle list of given vehicle type.
Window functions not directly related to making/drawing windows.
static bool IsDepotTile(TileIndex tile)
Is the given tile a tile with a depot on it?