10#ifndef WAYPOINT_BASE_H
11#define WAYPOINT_BASE_H
Base classes/functions for base stations.
DiagDirection
Enumeration for diagonal directions.
bool IsRailWaypointTile(Tile t)
Is this tile a station tile and a rail waypoint?
StationID GetStationIndex(Tile t)
Get StationID from a tile.
@ Train
Station with train station.
StationType
Station types.
StringID string_id
Default name (town area) of station.
StationFacilities facilities
The facilities that this station has.
TileArea train_station
Tile area the train 'station' part covers.
Interface for SpriteGroup-s to access the gamestate.
SpecializedStation(StationID index, TileIndex tile)
Representation of a waypoint.
bool IsSingleTile() const
Is this a single tile waypoint?
TileArea road_waypoint_area
Tile area the road waypoint part covers.
bool IsOfType(const Waypoint *wp) const
Is the "type" of waypoint the same as the given waypoint, i.e.
uint32_t GetNewGRFVariable(const struct ResolverObject &object, uint8_t variable, uint8_t parameter, bool &available) const override
Helper function to get a NewGRF variable that isn't implemented by the base class.
Waypoint(StationID index, TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
TileArea GetTileArea(StationType type) const override
Get the tile area for a given station type.
uint16_t town_cn
The N-1th waypoint for this town (consecutive number).
uint GetPlatformLength(TileIndex, DiagDirection) const override
Determines the REMAINING length of a platform, starting at (and including) the given tile.
uint GetPlatformLength(TileIndex) const override
Obtain the length of a platform.
uint16_t waypoint_flags
Waypoint flags, see WaypointFlags.
bool TileBelongsToRailStation(TileIndex tile) const override
Check whether a specific tile belongs to this station.
void MoveSign(TileIndex new_xy) override
Move the waypoint main coordinate somewhere else.
void UpdateVirtCoord() override
Update the virtual coords needed to draw the waypoint sign.
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.
OrthogonalTileArea TileArea
Shorthand for the much more common orthogonal tile area.
WaypointFlags
Flags for Waypoint::waypoint_flags.
@ WPF_ROAD
This is a road waypoint.