17static constexpr StationID NEW_STATION{0xFFFD};
18static constexpr StationID ADJACENT_STATION{0xFFFE};
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.
Wrapper class to abstract away the way the tiles are stored.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
TriggerArea
Scope of station/roadstop animation or randomisation trigger.
@ Platform
Trigger a single platform.
@ Whole
Trigger the entire station.
EnumBitSet< StationAnimationTrigger, uint16_t > StationAnimationTriggers
Bitset of StationAnimationTrigger elements.
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.
EnumBitSet< AirportAnimationTrigger, uint8_t > AirportAnimationTriggers
Bitset of AirportAnimationTrigger elements.
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.
EnumBitSet< StationRandomTrigger, uint8_t > StationRandomTriggers
Bitset of StationRandomTrigger elements.
StationType
Station types.
@ Rail
Railways/train station.
@ Bus
Road stop for busses.
@ Truck
Road stop for trucks.
@ RailWaypoint
Waypoint for trains.
@ Buoy
Waypoint for ships.
@ RoadWaypoint
Waypoint for trucks and busses.
@ Oilrig
Heliport on an oil rig.
StationRandomTrigger
Randomisation triggers for stations and roadstops.
@ VehicleArrives
Trigger platform when train arrives.
@ NewCargo
Trigger station on new cargo arrival.
@ PathReservation
Trigger platform when train reserves path.
@ VehicleDeparts
Trigger platform when train leaves.
@ CargoTaken
Trigger station when cargo is completely taken.
@ VehicleLoads
Trigger platform when train loads/unloads.
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.
StationAnimationTrigger
Animation triggers for stations and roadstops.
@ Built
Trigger tile when built.
@ TileLoop
Trigger in the periodic tile loop.
@ AcceptanceTick
Trigger station every 250 ticks.
EnumBitSet< StationFacility, uint8_t > StationFacilities
Bitset of StationFacility elements.
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'.
EnumBitSet< StationVehicleType, uint8_t > StationVehicleTypes
Bitset of StationVehicleType elements.
AirportAnimationTrigger
Animation triggers for airport tiles.
@ AirplaneTouchdown
Triggered when an airplane (not a helicopter) touches down at the airport (for single tile).
StationVehicleType
The vehicles that may have visited a station.
Aircraft, helicopters, rotors and their shadows belong to this class.
All airport-related information.
Base class for all station-ish types.
Templated helper to make a PoolID a single POD value.
A Stop for a Road Vehicle.
All ships have this type.
'Train' is either a loco or a wagon.
Representation of a waypoint.
Type for storing and iterating orthogonal tile areas.
OrthogonalTileArea TileArea
Shorthand for the much more common orthogonal tile area.