OpenTTD Source
20241121-master-g67a0fccfad
|
Cost Provider of YAPF for water regions. More...
Public Types | |
typedef Types::Tpf | Tpf |
The pathfinder class (derived from THIS class). | |
typedef Types::TrackFollower | TrackFollower |
typedef Types::NodeList::Item | Node |
This will be our node type. | |
typedef Node::Key | Key |
Key to hash tables. | |
Public Member Functions | |
bool | PfCalcCost (Node &n, const TrackFollower *) |
Called by YAPF to calculate the cost from the origin to the given node. More... | |
Protected Member Functions | |
Tpf & | Yapf () |
To access inherited path finder. | |
Cost Provider of YAPF for water regions.
Definition at line 225 of file yapf_ship_regions.cpp.
|
inline |
Called by YAPF to calculate the cost from the origin to the given node.
Calculates only the cost of given node, adds it to the parent node cost and stores the result into Node::m_cost member.
Definition at line 243 of file yapf_ship_regions.cpp.