OpenTTD Source  20241121-master-g67a0fccfad
CYapfRailSegment Struct Reference

cached segment cost for rail YAPF More...

#include <yapf_node_rail.hpp>

Public Types

typedef CYapfRailSegmentKey Key
 

Public Member Functions

 CYapfRailSegment (const CYapfRailSegmentKey &key)
 
const KeyGetKey () const
 
TileIndex GetTile () const
 
CYapfRailSegmentGetHashNext ()
 
void SetHashNext (CYapfRailSegment *next)
 
void Dump (DumpTarget &dmp) const
 

Data Fields

CYapfRailSegmentKey key
 
TileIndex last_tile = INVALID_TILE
 
Trackdir last_td = INVALID_TRACKDIR
 
int cost = -1
 
TileIndex last_signal_tile = INVALID_TILE
 
Trackdir last_signal_td = INVALID_TRACKDIR
 
EndSegmentReasonBits end_segment_reason = ESRB_NONE
 
CYapfRailSegmenthash_next = nullptr
 

Detailed Description

cached segment cost for rail YAPF

Definition at line 67 of file yapf_node_rail.hpp.


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