Go to the documentation of this file.
10 #ifndef PATHFINDER_TYPE_H
11 #define PATHFINDER_TYPE_H
13 #include "../tile_type.h"
uint32 TileIndex
The index/ID of a Tile.
Helper container to find a depot.
static const int NPF_INFINITE_PENALTY
This penalty is the equivalent of "infinite", which means that paths that get this penalty will be ch...
bool reverse
True if reversing is necessary for the train to get to this depot.
static const int YAPF_SHIP_PATH_CACHE_LENGTH
Maximum length of ship path cache.
uint best_length
The distance towards the depot in penalty, or UINT_MAX if not found.
static const int YAPF_TILE_LENGTH
Length (penalty) of one tile with YAPF.
static const int YAPF_ROADVEH_PATH_CACHE_SEGMENTS
Maximum segments of road vehicle path cache.
static const int NPF_TILE_LENGTH
Length (penalty) of one tile with NPF.
TileIndex tile
The tile of the depot.
static const int YAPF_INFINITE_PENALTY
This penalty is the equivalent of "infinite", which means that paths that get this penalty will be ch...
static const int YAPF_TILE_CORNER_LENGTH
Length (penalty) of a corner with YAPF.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
static const int YAPF_ROADVEH_PATH_CACHE_DESTINATION_LIMIT
Distance from destination road stops to not cache any further.
FindDepotData(TileIndex tile=INVALID_TILE, uint best_length=UINT_MAX, bool reverse=false)
Create an instance of this structure.