18static constexpr StationID NEW_STATION{0xFFFD};
19static constexpr StationID ADJACENT_STATION{0xFFFE};
29using StationIDStack =
SmallStack<StationID::BaseType, StationID::BaseType, StationID::Invalid().base(), 8, StationID::End().base()>;
Minimal stack that uses a pool to avoid pointers.
Structure contains cached list of stations nearby.
const StationList & GetStations()
Run a tile loop to find stations around a tile, on demand.
StationList stations
List of stations nearby.
StationFinder(const TileArea &area)
Constructs StationFinder.
#define DECLARE_ENUM_AS_BIT_SET(enum_type)
Operators to allow to work with enum as with type safe bit set in C++.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
Minimal stack that uses a pool to avoid pointers and doesn't allocate any heap memory if there is onl...
static constexpr uint CA_TRAIN
Catchment for train stations with "modified catchment" enabled.
RoadStopType
Types of RoadStops.
static constexpr StationFacility STATION_FACILITY_GHOST
Fake 'facility' to allow toggling display of recently-removed station signs.
StationHadVehicleOfType
The vehicles that may have visited a station.
@ HVOT_WAYPOINT
Station is a waypoint (NewGRF only!)
@ HVOT_TRUCK
Station has seen a truck.
@ HVOT_NONE
Station has seen no vehicles.
@ HVOT_AIRCRAFT
Station has seen an aircraft.
@ HVOT_BUS
Station has seen a bus.
@ HVOT_SHIP
Station has seen a ship.
@ HVOT_TRAIN
Station has seen a train.
StationFacility
The facilities a station might be having.
@ TruckStop
Station with truck stops.
@ BusStop
Station with bus stops.
static constexpr uint CA_NONE
Catchment when the station has no facilities.
StationType
Station types.
static constexpr uint MAX_CATCHMENT
Maximum catchment for airports with "modified catchment" enabled.
static constexpr uint CA_DOCK
Catchment for docks with "modified catchment" enabled.
static constexpr uint CA_BUS
Catchment for bus stops with "modified catchment" enabled.
static constexpr uint CA_UNMODIFIED
Catchment for all stations with "modified catchment" disabled.
std::set< Station *, StationCompare > StationList
List of stations.
static constexpr uint CA_TRUCK
Catchment for truck stops with "modified catchment" enabled.
static const uint MAX_LENGTH_STATION_NAME_CHARS
The maximum length of a station name in characters including '\0'.
All airport-related information.
Base class for all station-ish types.
Represents the covered area of e.g.
A Stop for a Road Vehicle.
'Train' is either a loco or a wagon.
Representation of a waypoint.
Type for storing the 'area' of something uses on the map.