OpenTTD
|
Additional Inherited Members | |
![]() | |
typedef Types::Tpf | Tpf |
the pathfinder class (derived from THIS class) | |
typedef Types::TrackFollower | TrackFollower |
typedef Types::NodeList | NodeList |
our node list | |
typedef Types::VehicleType | VehicleType |
the type of vehicle | |
typedef NodeList::Titem | Node |
this will be our node type | |
typedef Node::Key | Key |
key to hash tables | |
![]() | |
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 Types::Tpf | Tpf |
the pathfinder class (derived from THIS class) | |
typedef Types::NodeList::Titem | Node |
this will be our node type | |
![]() | |
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 | |
![]() | |
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 | |
![]() | |
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 | |
![]() | |
CYapfBaseT () | |
default constructor | |
~CYapfBaseT () | |
default destructor | |
const YAPFSettings & | PfGetSettings () const |
return current settings (can be custom - company based - but later) | |
bool | FindPath (const VehicleType *v) |
Main pathfinder routine: | |
Node * | GetBestNode () |
If path was found return the best node that has reached the destination. | |
Node & | CreateNewNode () |
Calls NodeList::CreateNewNode() - allocates new node that can be filled and used as argument for AddStartupNode() or AddNewNode() | |
void | AddStartupNode (Node &n) |
Add new node (created by CreateNewNode and filled with data) into open list. | |
void | AddMultipleNodes (Node *parent, const TrackFollower &tf) |
add multiple nodes - direct children of the given node | |
void | PruneIntermediateNodeBranch () |
In some cases an intermediate node branch should be pruned. | |
void | AddNewNode (Node &n, const TrackFollower &tf) |
AddNewNode() - called by Tderived::PfFollowNode() for each child node. | |
const VehicleType * | GetVehicle () const |
void | DumpBase (DumpTarget &dmp) const |
![]() | |
bool | PfCalcCost (Node &n, const TrackFollower *tf) |
Called by YAPF to calculate the cost from the origin to the given node. | |
![]() | |
bool | PfNodeCacheFetch (Node &n) |
Called by YAPF to attach cached or local segment cost data to the given node. | |
void | PfNodeCacheFlush (Node &n) |
Called by YAPF to flush the cached segment cost data back into cache storage. | |
![]() | |
void | SetOrigin (TileIndex tile, TrackdirBits trackdirs) |
Set origin tile / trackdir mask. | |
void | PfSetStartupNodes () |
Called when YAPF needs to place origin nodes into open list. | |
![]() | |
void | SetDestination (TileIndex tile, TrackdirBits trackdirs) |
set the destination tile / more trackdirs | |
bool | PfDetectDestination (Node &n) |
Called by YAPF to detect if node ends in the desired destination. | |
bool | PfCalcEstimate (Node &n) |
Called by YAPF to calculate cost estimate. | |
![]() | |
void | PfFollowNode (Node &old_node) |
Called by YAPF to move from the given node to the next tile. | |
char | TransportTypeChar () const |
return debug report character to identify the transportation type | |
![]() | |
static Trackdir | ChooseShipTrack (const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found) |
static bool | CheckShipReverse (const Ship *v, TileIndex tile, Trackdir td1, Trackdir td2) |
Check whether a ship should reverse to reach its destination. | |
![]() | |
NodeList | m_nodes |
node list multi-container | |
CPerformanceTimer | m_perf_cost |
stats - total CPU time of this run | |
CPerformanceTimer | m_perf_slope_cost |
stats - slope calculation CPU time | |
CPerformanceTimer | m_perf_ts_cost |
stats - GetTrackStatus() CPU time | |
CPerformanceTimer | m_perf_other_cost |
stats - other CPU time | |
int | m_num_steps |
this is there for debugging purposes (hope it doesn't hurt) | |
![]() | |
Tpf & | Yapf () |
to access inherited path finder | |
![]() | |
Tpf & | Yapf () |
to access inherited path finder | |
![]() | |
Tpf & | Yapf () |
to access inherited path finder | |
![]() | |
Tpf & | Yapf () |
to access inherited path finder | |
![]() | |
Tpf & | Yapf () |
to access inherited path finder | |
![]() | |
Node * | m_pBestDestNode |
pointer to the destination node found at last round | |
Node * | m_pBestIntermediateNode |
here should be node closest to the destination if path not found | |
const YAPFSettings * | m_settings |
current settings (_settings_game.yapf) | |
int | m_max_search_nodes |
maximum number of nodes we are allowed to visit before we give up | |
const VehicleType * | m_veh |
vehicle that we are trying to drive | |
int | m_stats_cost_calcs |
stats - how many node's costs were calculated | |
int | m_stats_cache_hits |
stats - how many node's costs were reused from cache | |
![]() | |
TileIndex | m_orgTile |
origin tile | |
TrackdirBits | m_orgTrackdirs |
origin trackdir mask | |
![]() | |
TileIndex | m_destTile |
destination tile | |
TrackdirBits | m_destTrackdirs |
destination trackdir mask |
Definition at line 220 of file yapf_ship.cpp.