OpenTTD Source 20260208-master-g43af8e94d0
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 = INVALID_TILE
DestinationID destination {}
 The DestinationID as used for orders.
bool reverse = false
bool found = false

Detailed Description

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

Definition at line 189 of file vehicle_base.h.

Constructor & Destructor Documentation

◆ ClosestDepot()

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

Definition at line 197 of file vehicle_base.h.

Field Documentation

◆ destination

DestinationID ClosestDepot::destination {}

The DestinationID as used for orders.

Definition at line 191 of file vehicle_base.h.

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

◆ found

bool ClosestDepot::found = false

Definition at line 193 of file vehicle_base.h.

◆ location

TileIndex ClosestDepot::location = INVALID_TILE

Definition at line 190 of file vehicle_base.h.

◆ reverse

bool ClosestDepot::reverse = false

Definition at line 192 of file vehicle_base.h.


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