OpenTTD Source 20250220-master-gf89924a727
DestinationID Struct Reference

Public Types

using BaseType = uint16_t
 

Public Member Functions

constexpr DestinationID (size_t index)
 
constexpr DestinationID (DepotID depot)
 
constexpr DestinationID (StationID station)
 
constexpr DepotID ToDepotID () const noexcept
 
constexpr StationID ToStationID () const noexcept
 
constexpr BaseType base () const noexcept
 
constexpr bool operator== (const DestinationID &destination) const
 
constexpr bool operator== (const StationID &station) const
 

Data Fields

BaseType value = 0
 

Detailed Description

Definition at line 22 of file order_type.h.

Member Typedef Documentation

◆ BaseType

using DestinationID::BaseType = uint16_t

Definition at line 23 of file order_type.h.

Constructor & Destructor Documentation

◆ DestinationID() [1/3]

constexpr DestinationID::DestinationID ( size_t  index)
inlineconstexpr

Definition at line 27 of file order_type.h.

◆ DestinationID() [2/3]

constexpr DestinationID::DestinationID ( DepotID  depot)
inlineconstexpr

Definition at line 28 of file order_type.h.

◆ DestinationID() [3/3]

constexpr DestinationID::DestinationID ( StationID  station)
inlineconstexpr

Definition at line 29 of file order_type.h.

Member Function Documentation

◆ base()

constexpr BaseType DestinationID::base ( ) const
inlineconstexprnoexcept

Definition at line 33 of file order_type.h.

◆ operator==() [1/2]

constexpr bool DestinationID::operator== ( const DestinationID destination) const
inlineconstexpr

Definition at line 35 of file order_type.h.

◆ operator==() [2/2]

constexpr bool DestinationID::operator== ( const StationID station) const
inlineconstexpr

Definition at line 36 of file order_type.h.

◆ ToDepotID()

constexpr DepotID DestinationID::ToDepotID ( ) const
inlineconstexprnoexcept

Definition at line 31 of file order_type.h.

◆ ToStationID()

constexpr StationID DestinationID::ToStationID ( ) const
inlineconstexprnoexcept

Definition at line 32 of file order_type.h.

Field Documentation

◆ value

BaseType DestinationID::value = 0

Definition at line 24 of file order_type.h.


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