Main route finding class. More...
Public Member Functions | |
void | PfFollowNode (Node &old_node) |
Called by YAPF to move from the given node to the next nodes. | |
FORCEINLINE char | TransportTypeChar () const |
Return debug report character to identify the transportation type. | |
Static Public Member Functions | |
static RouteLink * | ChooseRouteLink (CargoID cid, const StationList *stations, TileIndex src, const TileArea &dest, StationID *start_station, StationID *next_unload, byte flags, bool *found, OrderID order, int max_cost) |
Find the best cargo routing from a station to a destination. | |
Private Types | |
typedef Types::Tpf | Tpf |
The pathfinder class (derived from THIS class). | |
typedef Types::TrackFollower | Follower |
The route follower. | |
typedef Types::NodeList::Titem | Node |
This will be our node type. | |
Private Member Functions | |
FORCEINLINE Tpf & | Yapf () |
To access inherited path finder. |
Main route finding class.
Definition at line 332 of file yapf_cargo.cpp.
static RouteLink* CYapfFollowRouteLinkT< Types >::ChooseRouteLink | ( | CargoID | cid, | |
const StationList * | stations, | |||
TileIndex | src, | |||
const TileArea & | dest, | |||
StationID * | start_station, | |||
StationID * | next_unload, | |||
byte | flags, | |||
bool * | found, | |||
OrderID | order, | |||
int | max_cost | |||
) | [inline, static] |
Find the best cargo routing from a station to a destination.
Definition at line 370 of file yapf_cargo.cpp.
Referenced by YapfChooseRouteLink().
void CYapfFollowRouteLinkT< Types >::PfFollowNode | ( | Node & | old_node | ) | [inline] |
Called by YAPF to move from the given node to the next nodes.
Definition at line 342 of file yapf_cargo.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_order_pool >::Get(), INVALID_ORDER, OUFB_NO_UNLOAD, and CYapfFollowRouteLinkT< Types >::Yapf().
FORCEINLINE char CYapfFollowRouteLinkT< Types >::TransportTypeChar | ( | ) | const [inline] |
Return debug report character to identify the transportation type.
Definition at line 364 of file yapf_cargo.cpp.
FORCEINLINE Tpf& CYapfFollowRouteLinkT< Types >::Yapf | ( | ) | [inline, private] |
To access inherited path finder.
Definition at line 338 of file yapf_cargo.cpp.
Referenced by CYapfFollowRouteLinkT< Types >::PfFollowNode().