OpenTTD Source
20241108-master-g80f628063a
|
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::Titem | Node |
this will be our node type | |
typedef Node::Key | Key |
key to hash tables | |
Public Member Functions | |
void | SetOrigin (TileIndex tile, Trackdir td, TileIndex tiler=INVALID_TILE, Trackdir tdr=INVALID_TRACKDIR, int reverse_penalty=0, bool treat_first_red_two_way_signal_as_eol=true) |
set origin (tiles, trackdirs, etc.) | |
void | PfSetStartupNodes () |
Called when YAPF needs to place origin nodes into open list. | |
bool | TreatFirstRedTwoWaySignalAsEOL () |
return true if first two-way signal should be treated as dead end | |
Protected Member Functions | |
Tpf & | Yapf () |
to access inherited path finder | |
Protected Attributes | |
TileIndex | origin_tile |
first origin tile | |
Trackdir | origin_td |
first origin trackdir | |
TileIndex | reverse_tile |
second (reverse) origin tile | |
Trackdir | reverse_td |
second (reverse) origin trackdir | |
int | reverse_penalty |
penalty to be added for using the reverse origin | |
bool | treat_first_red_two_way_signal_as_eol |
in some cases (leaving station) we need to handle first two-way signal differently | |
YAPF origin provider base class - used when there are two tile/trackdir origins.
Definition at line 62 of file yapf_common.hpp.