OpenTTD Source 20250502-master-ge0a9c7d818
|
Structure to return information about the closest depot location, and whether it could be found. More...
#include <vehicle_base.h>
Public Member Functions | |
ClosestDepot (TileIndex location, DestinationID destination, bool reverse=false) | |
Data Fields | |
TileIndex | location = INVALID_TILE |
DestinationID | destination {} |
The DestinationID as used for orders. | |
bool | reverse = false |
bool | found = false |
Structure to return information about the closest depot location, and whether it could be found.
Definition at line 211 of file vehicle_base.h.
|
inline |
Definition at line 219 of file vehicle_base.h.
DestinationID ClosestDepot::destination {} |
The DestinationID as used for orders.
Definition at line 213 of file vehicle_base.h.
Referenced by Vehicle::SendToDepot(), and UpdateOrderDest().
bool ClosestDepot::found = false |
Definition at line 215 of file vehicle_base.h.
TileIndex ClosestDepot::location = INVALID_TILE |
Definition at line 212 of file vehicle_base.h.
bool ClosestDepot::reverse = false |
Definition at line 214 of file vehicle_base.h.