OpenTTD Source 20250426-master-gbb1d561369
|
This file has the header for AyStar. More...
Go to the source code of this file.
Data Structures | |
struct | PathNode |
class | AyStar |
AyStar search algorithm struct. More... | |
Typedefs | |
using | AyStarNode = CYapfNodeKeyTrackDir |
Enumerations | |
enum class | AyStarStatus : uint8_t { FoundEndNode , EmptyOpenList , StillBusy , NoPath , LimitReached , Done } |
Return status of AyStar methods. More... | |
Variables | |
static const int | AYSTAR_DEF_MAX_SEARCH_NODES = 10000 |
Reference limit for #AyStar::max_search_nodes. | |
static const int | AYSTAR_INVALID_NODE = -1 |
Item is not valid (for example, not walkable). | |
This file has the header for AyStar.
AyStar is a fast path finding routine and is used for things like AI path finding and Train path finding. For more information about AyStar (A* Algorithm), you can look at http://en.wikipedia.org/wiki/A-star_search_algorithm.
Definition in file aystar.h.
using AyStarNode = CYapfNodeKeyTrackDir |
|
strong |
Return status of AyStar methods.
|
static |
Reference limit for #AyStar::max_search_nodes.
Definition at line 22 of file aystar.h.
Referenced by AyStar::Loop().
|
static |
Item is not valid (for example, not walkable).
Definition at line 34 of file aystar.h.
Referenced by AyStar::CheckTile().