#include "tile_type.h"
#include "depot_type.h"
#include "oldpool.h"
#include "town_type.h"
Go to the source code of this file.
Data Structures | |
struct | Depot |
Defines | |
#define | FOR_ALL_DEPOTS_FROM(d, start) for (d = GetDepot(start); d != NULL; d = (d->index + 1U < GetDepotPoolSize()) ? GetDepot(d->index + 1U) : NULL) if (d->IsValid()) |
#define | FOR_ALL_DEPOTS(d) FOR_ALL_DEPOTS_FROM(d, 0) |
Functions | |
static bool | IsValidDepotID (DepotID index) |
Depot * | GetDepotByTile (TileIndex tile) |
Gets a depot from a tile. |
Definition in file depot_base.h.
Depot* GetDepotByTile | ( | TileIndex | tile | ) |
Gets a depot from a tile.
Definition at line 18 of file depot.cpp.
Referenced by AIOrder::InsertOrder(), and YapfFindNearestRoadDepot().