General functions related to pathfinders. More...
#include "../waypoint_base.h"Go to the source code of this file.
Functions | |
| static TileIndex | CalcClosestStationTile (StationID station, TileIndex tile, StationType station_type) |
| Calculates the tile of given station that is closest to a given tile for this we assume the station is a rectangle, as defined by its tile are (st->train_station). | |
General functions related to pathfinders.
Definition in file pathfinder_func.h.
| static TileIndex CalcClosestStationTile | ( | StationID | station, | |
| TileIndex | tile, | |||
| StationType | station_type | |||
| ) | [inline, static] |
Calculates the tile of given station that is closest to a given tile for this we assume the station is a rectangle, as defined by its tile are (st->train_station).
| station | The station to calculate the distance to | |
| tile | The tile from where to calculate the distance | |
| station_type | the station type to get the closest tile of |
Definition at line 26 of file pathfinder_func.h.
References ClampU(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_station_pool >::Get(), BaseStation::GetTileArea(), TileArea::h, INVALID_TILE, TileArea::tile, TileX(), TileXY(), TileY(), TileArea::w, and BaseStation::xy.
1.7.1