|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
16 #include "viewport_kdtree.h"
37 case STATION_WAYPOINT:
47 default: NOT_REACHED();
void CloseWindowById(WindowClass cls, WindowNumber number, bool force, int data)
Close a window by its class and window number (if it is open).
Tindex index
Index of this pool item.
void GetTileArea(TileArea *ta, StationType type) const override
Get the tile area for a given station type.
@ INVALID_ROADTYPE
flag for invalid roadtype
uint16_t h
The height of the area.
void Remove(const T &element)
Remove a single element from the tree, if it exists.
StationType
Station types.
TrackedViewportSign sign
NOSAVE: Dimensions of sign.
RailType
Enumeration for all possible railtypes.
@ STAT_CLASS_WAYP
Waypoint class.
TileArea train_station
Tile area the train 'station' part covers.
Represents the covered area of e.g.
@ WC_WAYPOINT_VIEW
Waypoint view; Window numbers:
TileIndex tile
The base tile of the area.
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination, bool hangar)
Removes an order from all vehicles.
static bool CleaningPool()
Returns current state of pool cleaning - yes or no.
bool kdtree_valid
Are the sign data valid for use with the _viewport_sign_kdtree?
TileIndex xy
Base tile of the station.
uint16_t w
The width of the area.
bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station)
Draw representation of a station tile for GUI purposes.
void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
Draw a waypoint.