41 default: NOT_REACHED();
51 if (this->
sign.kdtree_valid) _viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeWaypoint(this->
index));
bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station)
Draw representation of a station tile for GUI purposes.
Header file for NewGRF stations.
PoolID< uint16_t, struct StationClassIDTag, UINT16_MAX, UINT16_MAX > StationClassID
Class IDs for stations.
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination, bool hangar)
Removes an order from all vehicles.
Functions related to orders.
RailType
Enumeration for all possible railtypes.
@ INVALID_ROADTYPE
flag for invalid roadtype
A number of safeguards to prevent using unsafe methods.
StationType
Station types.
@ RailWaypoint
Waypoint for trains.
@ Buoy
Waypoint for ships.
@ RoadWaypoint
Waypoint for trucks and busses.
Definition of base types and functions in a cross-platform compatible way.
TileIndex xy
Base tile of the station.
TileArea train_station
Tile area the train 'station' part covers.
TrackedViewportSign sign
NOSAVE: Dimensions of sign.
static bool CleaningPool()
TileArea road_waypoint_area
Tile area the road waypoint part covers.
TileArea GetTileArea(StationType type) const override
Get the tile area for a given station type.
~Waypoint() override
Remove all references to this waypoint.
OrthogonalTileArea TileArea
Shorthand for the much more common orthogonal tile area.
Declarations for accessing the k-d tree of viewports.
void DrawWaypointSprite(int x, int y, StationClassID station_class, uint16_t station_type, RailType railtype)
Draw a waypoint.
void CloseWindowById(WindowClass cls, WindowNumber number, bool force, int data)
Close a window by its class and window number (if it is open).
Window functions not directly related to making/drawing windows.
@ WC_WAYPOINT_VIEW
Waypoint view; Window numbers: