OpenTTD Source 20241224-master-gf74b0cf984
|
YAPF origin provider base class - used when origin is one tile / multiple trackdirs. 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 tile, TrackdirBits trackdirs) |
Set origin tile / trackdir mask. | |
void | PfSetStartupNodes () |
Called when YAPF needs to place origin nodes into open list. | |
Protected Member Functions | |
Tpf & | Yapf () |
to access inherited path finder | |
Protected Attributes | |
TileIndex | origin_tile |
origin tile | |
TrackdirBits | origin_trackdirs |
origin trackdir mask | |
YAPF origin provider base class - used when origin is one tile / multiple trackdirs.
Definition at line 19 of file yapf_common.hpp.
typedef Node::Key CYapfOriginTileT< Types >::Key |
key to hash tables
Definition at line 24 of file yapf_common.hpp.
typedef Types::NodeList::Item CYapfOriginTileT< Types >::Node |
this will be our node type
Definition at line 23 of file yapf_common.hpp.
typedef Types::Tpf CYapfOriginTileT< Types >::Tpf |
the pathfinder class (derived from THIS class)
Definition at line 22 of file yapf_common.hpp.
|
inline |
Called when YAPF needs to place origin nodes into open list.
Definition at line 45 of file yapf_common.hpp.
References FindFirstBit(), KillFirstBit(), TRACKDIR_BIT_NONE, and CYapfOriginTileT< Types >::Yapf().
|
inline |
Set origin tile / trackdir mask.
Definition at line 38 of file yapf_common.hpp.
|
inlineprotected |
to access inherited path finder
Definition at line 31 of file yapf_common.hpp.
Referenced by CYapfOriginTileT< Types >::PfSetStartupNodes().
|
protected |
origin tile
Definition at line 27 of file yapf_common.hpp.
|
protected |
origin trackdir mask
Definition at line 28 of file yapf_common.hpp.