#include <ai_vehiclelist.hpp>
Public Member Functions | |
AIVehicleList_Depot (TileIndex tile) | |
Static Public Member Functions | |
static const char * | GetClassName () |
The list is created with a tile. If the tile is part of an airport all aircraft having a depot order on a hangar of that airport will be returned. For all other vehicle types the tile has to be a depot or an empty list will be returned.
Definition at line 51 of file ai_vehiclelist.hpp.
AIVehicleList_Depot::AIVehicleList_Depot | ( | TileIndex | tile | ) |
tile | The tile of the depot to get the list of vehicles from, which have orders to it. |
Definition at line 47 of file ai_vehiclelist.cpp.
References AIAbstractList::AddItem(), GetDepotIndex(), GetStationIndex(), GetTileType(), IsAirport(), IsRailDepot(), AIMap::IsValidTile(), MP_RAILWAY, MP_ROAD, MP_STATION, MP_WATER, VEH_AIRCRAFT, VEH_ROAD, VEH_SHIP, and VEH_TRAIN.