OpenTTD Source
20240915-master-g3784a3d3d6
|
Go to the documentation of this file.
10 #ifndef WAYPOINT_BASE_H
11 #define WAYPOINT_BASE_H
StationFacility facilities
The facilities that this station has.
void MoveSign(TileIndex new_xy) override
Move the waypoint main coordinate somewhere else.
@ FACIL_TRAIN
Station with train station.
uint GetPlatformLength(TileIndex, DiagDirection) const override
Determines the REMAINING length of a platform, starting at (and including) the given tile.
Class defining several overloaded accessors so we don't have to cast base stations that often.
Tindex index
Index of this pool item.
Interface for SpriteGroup-s to access the gamestate.
uint16_t town_cn
The N-1th waypoint for this town (consecutive number)
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
bool IsOfType(const Waypoint *wp) const
Is the "type" of waypoint the same as the given waypoint, i.e.
Representation of a waypoint.
DiagDirection
Enumeration for diagonal directions.
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.
bool IsRailWaypointTile(Tile t)
Is this tile a station tile and a rail waypoint?
uint16_t h
The height of the area.
StationType
Station types.
WaypointFlags
Flags for Waypoint::waypoint_flags.
StringID string_id
Default name (town area) of station.
void UpdateVirtCoord() override
Update the virtual coords needed to draw the waypoint sign.
bool IsSingleTile() const
Is this a single tile waypoint?
TileArea train_station
Tile area the train 'station' part covers.
Represents the covered area of e.g.
uint GetPlatformLength(TileIndex) const override
Obtain the length of a platform.
StationID GetStationIndex(Tile t)
Get StationID from a tile.
Waypoint(TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
@ WPF_ROAD
This is a road waypoint.
TileArea road_waypoint_area
Tile area the road waypoint part covers.
uint16_t waypoint_flags
Waypoint flags, see WaypointFlags.
uint16_t w
The width of the area.
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.