12 #ifndef PATHFINDER_FUNC_H 13 #define PATHFINDER_FUNC_H 15 #include "../waypoint_base.h" 37 uint maxx = minx + ta.
w - 1;
38 uint maxy = miny + ta.
h - 1;
static Titem * Get(size_t index)
Returns Titem with given index.
static uint TileX(TileIndex tile)
Get the X component of a tile.
virtual void GetTileArea(TileArea *ta, StationType type) const =0
Get the tile area for a given station type.
uint16 w
The width of the area.
static uint ClampU(const uint a, const uint min, const uint max)
Clamp an unsigned integer between an interval.
Represents the covered area of e.g.
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 i...
TileIndex tile
The base tile of the area.
StationType
Station types.
uint32 TileIndex
The index/ID of a Tile.
static uint TileY(TileIndex tile)
Get the Y component of a tile.
TileIndex xy
Base tile of the station.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
uint16 h
The height of the area.
Base class for all station-ish types.
static TileIndex TileXY(uint x, uint y)
Returns the TileIndex of a coordinate.