OpenTTD Source 20250924-master-gbec4e71d53
|
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. | |
Protected Member Functions | |
Tpf & | Yapf () |
To access inherited path finder. | |
Cost Provider of YAPF for water regions.
Definition at line 220 of file yapf_ship_regions.cpp.
typedef Node::Key CYapfCostRegionT< Types >::Key |
Key to hash tables.
Definition at line 225 of file yapf_ship_regions.cpp.
typedef Types::NodeList::Item CYapfCostRegionT< Types >::Node |
This will be our node type.
Definition at line 224 of file yapf_ship_regions.cpp.
typedef Types::Tpf CYapfCostRegionT< Types >::Tpf |
The pathfinder class (derived from THIS class).
Definition at line 222 of file yapf_ship_regions.cpp.
typedef Types::TrackFollower CYapfCostRegionT< Types >::TrackFollower |
Definition at line 223 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::cost member.
Definition at line 237 of file yapf_ship_regions.cpp.
References DIAGDIRDIFF_90LEFT, DIAGDIRDIFF_90RIGHT, and DiagDirDifference().
|
inlineprotected |
To access inherited path finder.
Definition at line 229 of file yapf_ship_regions.cpp.