|
OpenTTD Source
14.0-beta1
|
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.
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.
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.
StringID string_id
Default name (town area) of station.
StationType
Station types.
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.
DiagDirection
Enumeration for diagonal directions.
uint GetPlatformLength(TileIndex) const override
Obtain the length of a platform.
@ FACIL_TRAIN
Station with train station.
StationID GetStationIndex(Tile t)
Get StationID from a tile.
Waypoint(TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
uint32_t GetNewGRFVariable(const struct ResolverObject &object, byte variable, byte parameter, bool *available) const override
Helper function to get a NewGRF variable that isn't implemented by the base class.
uint16_t w
The width of the area.