OpenTTD Source 20241224-master-gee860a5c8e
ClosestDepot Struct Reference

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
 
DestinationID destination
 The DestinationID as used for orders.
 
bool reverse
 
bool found
 

Detailed Description

Structure to return information about the closest depot location, and whether it could be found.

Definition at line 230 of file vehicle_base.h.

Constructor & Destructor Documentation

◆ ClosestDepot() [1/2]

ClosestDepot::ClosestDepot ( )
inline

Definition at line 236 of file vehicle_base.h.

◆ ClosestDepot() [2/2]

ClosestDepot::ClosestDepot ( TileIndex  location,
DestinationID  destination,
bool  reverse = false 
)
inline

Definition at line 239 of file vehicle_base.h.

Field Documentation

◆ destination

DestinationID ClosestDepot::destination

The DestinationID as used for orders.

Definition at line 232 of file vehicle_base.h.

Referenced by Vehicle::SendToDepot(), and UpdateOrderDest().

◆ found

bool ClosestDepot::found

Definition at line 234 of file vehicle_base.h.

◆ location

TileIndex ClosestDepot::location

Definition at line 231 of file vehicle_base.h.

◆ reverse

bool ClosestDepot::reverse

Definition at line 233 of file vehicle_base.h.


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