CYapfFollowRouteLinkT< Types > Class Template Reference

Main route finding class. More...

Inheritance diagram for CYapfFollowRouteLinkT< Types >:
CYapfT< CYapfRouteLink_TypesT< CYapfRouteLink > > CYapfRouteLink

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 RouteLinkChooseRouteLink (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 TpfYapf ()
 To access inherited path finder.

Detailed Description

template<class Types>
class CYapfFollowRouteLinkT< Types >

Main route finding class.

Definition at line 323 of file yapf_cargo.cpp.


Member Function Documentation

template<class Types >
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 361 of file yapf_cargo.cpp.

Referenced by YapfChooseRouteLink().

template<class Types >
void CYapfFollowRouteLinkT< Types >::PfFollowNode ( Node old_node  )  [inline]
template<class Types >
FORCEINLINE char CYapfFollowRouteLinkT< Types >::TransportTypeChar (  )  const [inline]

Return debug report character to identify the transportation type.

Definition at line 355 of file yapf_cargo.cpp.

template<class Types >
FORCEINLINE Tpf& CYapfFollowRouteLinkT< Types >::Yapf (  )  [inline, private]

To access inherited path finder.

Definition at line 329 of file yapf_cargo.cpp.

Referenced by CYapfFollowRouteLinkT< Types >::PfFollowNode().


The documentation for this class was generated from the following file:

Generated on Mon May 9 05:19:48 2011 for OpenTTD by  doxygen 1.6.1