OpenTTD Source 20260206-master-g4d4e37dbf1
PBSTileInfo Struct Reference

This struct contains information about the end of a reserved path. More...

#include <pbs.h>

Public Member Functions

 PBSTileInfo ()
 Create an empty PBSTileInfo.
 PBSTileInfo (TileIndex _t, Trackdir _td, bool _okay)
 Create a PBSTileInfo with given tile, track direction and safe waiting position information.

Data Fields

TileIndex tile
 Tile the path ends, INVALID_TILE if no valid path was found.
Trackdir trackdir
 The reserved trackdir on the tile.
bool okay
 True if tile is a safe waiting position, false otherwise.

Detailed Description

This struct contains information about the end of a reserved path.

Definition at line 26 of file pbs.h.

Constructor & Destructor Documentation

◆ PBSTileInfo() [1/2]

PBSTileInfo::PBSTileInfo ( )
inline

Create an empty PBSTileInfo.

Definition at line 34 of file pbs.h.

References INVALID_TILE, INVALID_TRACKDIR, okay, tile, and trackdir.

◆ PBSTileInfo() [2/2]

PBSTileInfo::PBSTileInfo ( TileIndex _t,
Trackdir _td,
bool _okay )
inline

Create a PBSTileInfo with given tile, track direction and safe waiting position information.

Parameters
_tThe tile where the path ends.
_tdThe reserved track dir on the tile.
_okayWhether the tile is a safe waiting point or not.

Definition at line 42 of file pbs.h.

References okay, tile, and trackdir.

Field Documentation

◆ okay

bool PBSTileInfo::okay

True if tile is a safe waiting position, false otherwise.

Definition at line 29 of file pbs.h.

Referenced by FollowTrainReservation(), PBSTileInfo(), PBSTileInfo(), TryPathReserve(), and CYapfReserveTrack< Types >::TryReservePath().

◆ tile

TileIndex PBSTileInfo::tile

◆ trackdir


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