OpenTTD Source
12.0-beta2
|
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.
uint32 TileIndex
The index/ID of a Tile.
void MoveSign(TileIndex new_xy) override
Move the waypoint main coordinate somewhere else.
static bool IsRailWaypointTile(TileIndex t)
Is this tile a station tile and a rail waypoint?
Class defining several overloaded accessors so we don't have to cast base stations that often.
uint32 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 town_cn
The N-1th waypoint for this town (consecutive number)
Tindex index
Index of this pool item.
Interface for SpriteGroup-s to access the gamestate.
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.
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.
uint16 w
The width of the area.
Represents the covered area of e.g.
DiagDirection
Enumeration for diagonal directions.
uint GetPlatformLength(TileIndex tile) const override
Obtain the length of a platform.
uint16 h
The height of the area.
@ FACIL_TRAIN
Station with train station.
Waypoint(TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
static StationID GetStationIndex(TileIndex t)
Get StationID from a tile.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
uint GetPlatformLength(TileIndex tile, DiagDirection dir) const override
Determines the REMAINING length of a platform, starting at (and including) the given tile.