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.
@ FACIL_TRAIN
Station with train station.
StationType
Station types.
StationFacility facilities
The facilities that this station has.
StringID string_id
Default name (town area) of station.
TileArea train_station
Tile area the train 'station' part covers.
Represents the covered area of e.g.
uint16_t w
The width of the area.
uint16_t h
The height of the area.
Tindex index
Index of this pool item.
Interface for SpriteGroup-s to access the gamestate.
Class defining several overloaded accessors so we don't have to cast base stations that often.
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.
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 GetTileArea(TileArea *ta, StationType type) const override
Get the tile area for a given station type.
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.
Waypoint(TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
WaypointFlags
Flags for Waypoint::waypoint_flags.
@ WPF_ROAD
This is a road waypoint.