20struct Depot : DepotPool::PoolItem<&_depot_pool> {
31 static inline Depot *GetByTile(
TileIndex tile)
Timer that is increased every 27ms, and counts towards ticks / days / months / years.
DepotPool _depot_pool("Depot")
All our depots tucked away in a pool.
Map related accessors for depots.
DepotID GetDepotIndex(Tile t)
Get the index of which depot is attached to the tile.
PoolID< uint16_t, struct DepotIDTag, 64000, 0xFFFF > DepotID
Type for the unique identifier of depots.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
bool IsOfType(const Depot *d) const
Is the "type" of depot the same as the given depot, i.e.
~Depot()
Clean up a depot.
uint16_t town_cn
The N-1th depot for this town (consecutive number).
TimerGameCalendar::Date build_date
Date of construction.
static Depot * Get(auto index)
Base class for all pools.
static TileType GetTileType(Tile tile)
Get the tiletype of a given tile.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition of the game-calendar-timer.