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