OpenTTD Source 20241224-master-gee860a5c8e
CYapfShipNodeT< Tkey_ > Struct Template Reference

Yapf Node for ships. More...

#include <yapf_node_ship.hpp>

Inheritance diagram for CYapfShipNodeT< Tkey_ >:
CYapfNodeT< Tkey_, CYapfShipNodeT< Tkey_ > >

Public Types

typedef CYapfNodeT< Tkey_, CYapfShipNodeT< Tkey_ > > base
 
- Public Types inherited from CYapfNodeT< Tkey_, CYapfShipNodeT< Tkey_ > >
typedef Tkey_ Key
 
typedef CYapfShipNodeT< Tkey_ > Node
 

Public Member Functions

void Set (CYapfShipNodeT *parent, TileIndex tile, Trackdir td, bool is_choice)
 
- Public Member Functions inherited from CYapfNodeT< Tkey_, CYapfShipNodeT< Tkey_ > >
void Set (Node *parent, TileIndex tile, Trackdir td, bool is_choice)
 
NodeGetHashNext ()
 
void SetHashNext (Node *pNext)
 
TileIndex GetTile () const
 
Trackdir GetTrackdir () const
 
const Tkey_ & GetKey () const
 
int GetCost () const
 
int GetCostEstimate () const
 
bool GetIsChoice () const
 
bool operator< (const Node &other) const
 
void Dump (DumpTarget &dmp) const
 

Data Fields

TileIndex segment_last_tile
 
Trackdir segment_last_td
 
- Data Fields inherited from CYapfNodeT< Tkey_, CYapfShipNodeT< Tkey_ > >
Tkey_ key
 
Nodehash_next
 
Nodeparent
 
int cost
 
int estimate
 
bool is_choice
 

Detailed Description

template<class Tkey_>
struct CYapfShipNodeT< Tkey_ >

Yapf Node for ships.

Definition at line 20 of file yapf_node_ship.hpp.

Member Typedef Documentation

◆ base

template<class Tkey_ >
typedef CYapfNodeT<Tkey_, CYapfShipNodeT<Tkey_> > CYapfShipNodeT< Tkey_ >::base

Definition at line 21 of file yapf_node_ship.hpp.

Member Function Documentation

◆ Set()

template<class Tkey_ >
void CYapfShipNodeT< Tkey_ >::Set ( CYapfShipNodeT< Tkey_ > *  parent,
TileIndex  tile,
Trackdir  td,
bool  is_choice 
)
inline

Definition at line 26 of file yapf_node_ship.hpp.

Field Documentation

◆ segment_last_td

template<class Tkey_ >
Trackdir CYapfShipNodeT< Tkey_ >::segment_last_td

Definition at line 24 of file yapf_node_ship.hpp.

◆ segment_last_tile

template<class Tkey_ >
TileIndex CYapfShipNodeT< Tkey_ >::segment_last_tile

Definition at line 23 of file yapf_node_ship.hpp.


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