OpenTTD
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CYapfOriginTileT< Types > Class Template Reference

YAPF origin provider base class - used when origin is one tile / multiple trackdirs. More...

#include <yapf_common.hpp>

Inheritance diagram for CYapfOriginTileT< Types >:
CYapfT< CYapfRoad_TypesT< CYapfRoad1, CRoadNodeListTrackDir, CYapfDestinationTileRoadT > > CYapfT< CYapfRoad_TypesT< CYapfRoad2, CRoadNodeListExitDir, CYapfDestinationTileRoadT > > CYapfT< CYapfRoad_TypesT< CYapfRoadAnyDepot1, CRoadNodeListTrackDir, CYapfDestinationAnyDepotRoadT > > CYapfT< CYapfRoad_TypesT< CYapfRoadAnyDepot2, CRoadNodeListExitDir, CYapfDestinationAnyDepotRoadT > > CYapfT< CYapfShip_TypesT< CYapfShip1, CFollowTrackWater, CShipNodeListTrackDir > > CYapfT< CYapfShip_TypesT< CYapfShip2, CFollowTrackWater, CShipNodeListExitDir > > CYapfT< CYapfShip_TypesT< CYapfShip3, CFollowTrackWaterNo90, CShipNodeListTrackDir > > CYapfRoad1 CYapfRoad2 CYapfRoadAnyDepot1 CYapfRoadAnyDepot2 CYapfShip1 CYapfShip2 CYapfShip3

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, TrackdirBits trackdirs)
 Set origin tile / trackdir mask.
void PfSetStartupNodes ()
 Called when YAPF needs to place origin nodes into open list.

Protected Member Functions

TpfYapf ()
 to access inherited path finder

Protected Attributes

TileIndex m_orgTile
 origin tile
TrackdirBits m_orgTrackdirs
 origin trackdir mask

Detailed Description

template<class Types>
class CYapfOriginTileT< Types >

YAPF origin provider base class - used when origin is one tile / multiple trackdirs.

Definition at line 17 of file yapf_common.hpp.


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