|
OpenTTD Source 20260208-master-g43af8e94d0
|
Public Member Functions | |
| Depot (DepotID index, TileIndex xy=INVALID_TILE) | |
| ~Depot () | |
| Clean up a depot. | |
| bool | IsOfType (const Depot *d) const |
| Is the "type" of depot the same as the given depot, i.e. | |
Static Public Member Functions | |
| static Depot * | GetByTile (TileIndex tile) |
Data Fields | |
| uint16_t | town_cn = 0 |
| The N-1th depot for this town (consecutive number). | |
| TileIndex | xy = INVALID_TILE |
| Town * | town = nullptr |
| std::string | name {} |
| TimerGameCalendar::Date | build_date {} |
| Date of construction. | |
Definition at line 20 of file depot_base.h.
|
inline |
Definition at line 28 of file depot_base.h.
| Depot::~Depot | ( | ) |
Clean up a depot.
Definition at line 28 of file depot.cpp.
References CloseWindowById(), GetDepotIndex(), GetDepotVehicleType(), GetTileOwner(), GetWindowClassForVehicleType(), IsDepotTile(), RemoveOrderFromAllVehicles(), OrderBackup::Reset(), VL_DEPOT_LIST, and WC_VEHICLE_DEPOT.
Definition at line 31 of file depot_base.h.
|
inline |
Is the "type" of depot the same as the given depot, i.e.
are both a rail, road or ship depots?
| d | The depot to compare to. |
Definition at line 42 of file depot_base.h.
References GetTileType().
| TimerGameCalendar::Date Depot::build_date {} |
Date of construction.
Definition at line 26 of file depot_base.h.
| std::string Depot::name {} |
Definition at line 25 of file depot_base.h.
| Town* Depot::town = nullptr |
Definition at line 24 of file depot_base.h.
| uint16_t Depot::town_cn = 0 |
The N-1th depot for this town (consecutive number).
Definition at line 22 of file depot_base.h.
Referenced by FormatString().
| TileIndex Depot::xy = INVALID_TILE |
Definition at line 23 of file depot_base.h.