|
OpenTTD Source 20251117-master-g7398d2e290
|
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. | |
This struct contains information about the end of a reserved path.
|
inline |
Create an empty PBSTileInfo.
Create a PBSTileInfo with given tile, track direction and safe waiting position information.
| _t | The tile where the path ends. |
| _td | The reserved track dir on the tile. |
| _okay | Whether the tile is a safe waiting point or not. |
| bool PBSTileInfo::okay |
True if tile is a safe waiting position, false otherwise.
Definition at line 29 of file pbs.h.
Referenced by FollowTrainReservation(), TryPathReserve(), and CYapfReserveTrack< Types >::TryReservePath().
| TileIndex PBSTileInfo::tile |
Tile the path ends, INVALID_TILE if no valid path was found.
Definition at line 27 of file pbs.h.
Referenced by ExtendTrainReservation(), FollowTrainReservation(), GetTrainForReservation(), TryPathReserve(), CYapfReserveTrack< Types >::TryReservePath(), and YapfTrainFindNearestDepot().
| Trackdir PBSTileInfo::trackdir |
The reserved trackdir on the tile.
Definition at line 28 of file pbs.h.
Referenced by CheckTrainsOnTrack(), ExtendTrainReservation(), FollowTrainReservation(), GetTrainForReservation(), TryPathReserve(), CYapfReserveTrack< Types >::TryReservePath(), and YapfTrainFindNearestDepot().