|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
YAPF origin provider base class - used when there are two tile/trackdir origins. More...
#include <yapf_common.hpp>
Public Types | |
| typedef Types::Tpf | Tpf |
| the pathfinder class (derived from THIS class) | |
| typedef Types::NodeList::Item | Node |
| this will be our node type | |
| typedef Node::Key | Key |
| key to hash tables | |
Public Member Functions | |
| void | SetOrigin (TileIndex forward_tile, Trackdir forward_td, TileIndex reverse_tile=INVALID_TILE, Trackdir reverse_td=INVALID_TRACKDIR, int reverse_penalty=0) |
| Set origin (tiles, trackdirs, etc.). | |
Protected Member Functions | |
| Tpf & | Yapf () |
| Access the inherited path finder. | |
YAPF origin provider base class - used when there are two tile/trackdir origins.
Definition at line 52 of file yapf_common.hpp.
| typedef Node::Key CYapfOriginTileTwoWayT< Types >::Key |
key to hash tables
Definition at line 56 of file yapf_common.hpp.
| typedef Types::NodeList::Item CYapfOriginTileTwoWayT< Types >::Node |
this will be our node type
Definition at line 55 of file yapf_common.hpp.
| typedef Types::Tpf CYapfOriginTileTwoWayT< Types >::Tpf |
the pathfinder class (derived from THIS class)
Definition at line 54 of file yapf_common.hpp.
|
inline |
Set origin (tiles, trackdirs, etc.).
| forward_tile | The start tile when going forward. |
| forward_td | The track direction when going forward. |
| reverse_tile | The start tile when going backward. |
| reverse_td | The track direction when going backward. |
| reverse_penalty | The penalty for reversing. |
Definition at line 74 of file yapf_common.hpp.
References INVALID_TILE, INVALID_TRACKDIR, and Yapf().
|
inlineprotected |
Access the inherited path finder.
Definition at line 60 of file yapf_common.hpp.
Referenced by SetOrigin().