OpenTTD Source 20250205-master-gfd85ab1e2c
VehicleListIdentifier Struct Reference

The information about a vehicle list. More...

#include <vehiclelist.h>

Public Member Functions

WindowNumber ToWindowNumber () const
 Pack a VehicleListIdentifier in 32 bits so it can be used as unique WindowNumber.
 
bool Valid () const
 
 VehicleListIdentifier (VehicleListType type, VehicleType vtype, CompanyID company, uint index=0)
 Create a simple vehicle list.
 

Data Fields

VehicleListType type
 The type of vehicle list.
 
VehicleType vtype
 The vehicle type associated with this list.
 
CompanyID company
 The company associated with this list.
 
uint32_t index
 A vehicle list type specific index.
 

Detailed Description

The information about a vehicle list.

Definition at line 29 of file vehiclelist.h.

Constructor & Destructor Documentation

◆ VehicleListIdentifier() [1/2]

VehicleListIdentifier::VehicleListIdentifier ( VehicleListType  type,
VehicleType  vtype,
CompanyID  company,
uint  index = 0 
)
inline

Create a simple vehicle list.

Parameters
typeList type.
vtypeVehicle type associated with this list.
companyCompany associated with this list.
indexOptional type specific index.

Definition at line 46 of file vehiclelist.h.

◆ VehicleListIdentifier() [2/2]

VehicleListIdentifier::VehicleListIdentifier ( )
inline

Definition at line 49 of file vehiclelist.h.

Member Function Documentation

◆ ToWindowNumber()

WindowNumber VehicleListIdentifier::ToWindowNumber ( ) const

◆ Valid()

bool VehicleListIdentifier::Valid ( ) const
inline

Definition at line 37 of file vehiclelist.h.

Field Documentation

◆ company

◆ index

◆ type

◆ vtype


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