|
|
typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class)
|
| |
|
typedef Types::TrackFollower | TrackFollower |
| |
|
typedef Types::NodeList::Titem | Node |
| | this will be our node type
|
| |
|
typedef Node::Key | Key |
| | key to hash tables
|
| |
|
typedef Node::CachedData | CachedData |
| |
|
|
int | SlopeCost (TileIndex tile, Trackdir td) |
| |
|
int | CurveCost (Trackdir td1, Trackdir td2) |
| |
|
int | SwitchCost (TileIndex tile1, TileIndex tile2, DiagDirection exitdir) |
| |
|
int | OneTileCost (TileIndex &tile, Trackdir trackdir) |
| | Return one tile cost (base cost + level crossing penalty).
|
| |
|
bool | IsAnyStationTileReserved (TileIndex tile, Trackdir trackdir, int skipped) |
| | Check for a reserved station platform.
|
| |
|
int | ReservationCost (Node &n, TileIndex tile, Trackdir trackdir, int skipped) |
| | The cost for reserved tiles, including skipped ones.
|
| |
|
int | SignalCost (Node &n, TileIndex tile, Trackdir trackdir) |
| |
|
int | PlatformLengthPenalty (int platform_length) |
| |
|
void | SetMaxCost (int max_cost) |
| |
| bool | PfCalcCost (Node &n, const TrackFollower *tf) |
| | Called by YAPF to calculate the cost from the origin to the given node. More...
|
| |
|
bool | CanUseGlobalCache (Node &n) const |
| |
|
void | ConnectNodeToCachedData (Node &n, CachedData &ci) |
| |
|
void | DisableCache (bool disable) |
| |
|
|
bool | m_stopped_on_first_two_way_signal |
| |
|
|
Tpf & | Yapf () |
| | to access inherited path finder
|
| |
|
|
static const int | s_max_segment_cost = 10000 |
| |
template<class Types>
class CYapfCostRailT< Types >
Definition at line 16 of file yapf_costrail.hpp.
◆ PfCalcCost()
◆ m_max_cost
- Note
- maximum cost doesn't work with caching enabled
- Todo:
- fix maximum cost failing with caching (e.g. FS#2900)
Definition at line 55 of file yapf_costrail.hpp.
The documentation for this class was generated from the following file: