12 #ifndef WAYPOINT_BASE_H 13 #define WAYPOINT_BASE_H 74 #define FOR_ALL_WAYPOINTS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Waypoint, var) uint16 town_cn
The N-1th waypoint for this town (consecutive number)
Interface for SpriteGroup-s to access the gamestate.
TileArea train_station
Tile area the train 'station' part covers.
Tindex index
Index of this pool item.
static bool IsRailWaypointTile(TileIndex t)
Is this tile a station tile and a rail waypoint?
Representation of a waypoint.
uint16 w
The width of the area.
uint32 GetNewGRFVariable(const struct ResolverObject &object, byte variable, byte parameter, bool *available) const
Helper function to get a NewGRF variable that isn't implemented by the base class.
bool TileBelongsToRailStation(TileIndex tile) const
Check whether a specific tile belongs to this station.
uint GetPlatformLength(TileIndex tile, DiagDirection dir) const
Determines the REMAINING length of a platform, starting at (and including) the given tile...
bool IsSingleTile() const
Is this a single tile waypoint?
Represents the covered area of e.g.
StationFacilityByte facilities
The facilities that this station has.
DiagDirection
Enumeration for diagonal directions.
static StationID GetStationIndex(TileIndex t)
Get StationID from a tile.
StationType
Station types.
uint32 TileIndex
The index/ID of a Tile.
bool IsOfType(const Waypoint *wp) const
Is the "type" of waypoint the same as the given waypoint, i.e.
void UpdateVirtCoord()
Update the virtual coords needed to draw the waypoint sign.
Station with train station.
uint GetPlatformLength(TileIndex tile) const
Obtain the length of a platform.
Base classes/functions for base stations.
Waypoint(TileIndex tile=INVALID_TILE)
Create a waypoint at the given tile.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
void GetTileArea(TileArea *ta, StationType type) const
Get the tile area for a given station type.
uint16 h
The height of the area.
StringID string_id
Default name (town area) of station.
Class defining several overloaded accessors so we don't have to cast base stations that often...