OpenTTD Source 20260917-master-gec444f7315
FindTrainOnTrackInfo Struct Reference

Helper struct for finding the best matching vehicle on a specific track. More...

Public Member Functions

 FindTrainOnTrackInfo ()
 Init the best location to nullptr always!

Data Fields

PBSTileInfo res
 Information about the track.
Train * best
 The currently "best" vehicle we have found.

Detailed Description

Helper struct for finding the best matching vehicle on a specific track.

Definition at line 266 of file pbs.cpp.

Constructor & Destructor Documentation

◆ FindTrainOnTrackInfo()

FindTrainOnTrackInfo::FindTrainOnTrackInfo ( )
inline

Init the best location to nullptr always!

Definition at line 271 of file pbs.cpp.

References best.

Field Documentation

◆ best

Train* FindTrainOnTrackInfo::best

The currently "best" vehicle we have found.

Definition at line 268 of file pbs.cpp.

Referenced by CheckTrainsOnTrack(), FindTrainOnTrackInfo(), FollowTrainReservation(), and GetTrainForReservation().

◆ res

PBSTileInfo FindTrainOnTrackInfo::res

Information about the track.

Definition at line 267 of file pbs.cpp.

Referenced by CheckTrainsOnTrack(), FollowTrainReservation(), and GetTrainForReservation().


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