OpenTTD Source  20241108-master-g80f628063a
CYapfOriginTileT< Types > Class Template Reference

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

#include <yapf_common.hpp>

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 origin_tile
 origin tile
 
TrackdirBits origin_trackdirs
 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 22 of file yapf_common.hpp.


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