OpenTTD Source 20241224-master-gf74b0cf984
TestedEngineDetails Struct Reference

Extra information about refitted cargo and capacity. More...

#include <vehicle_gui.h>

Public Member Functions

void FillDefaultCapacities (const Engine *e)
 

Data Fields

Money cost
 Refit cost.
 
CargoID cargo
 Cargo type.
 
uint capacity
 Cargo capacity.
 
uint16_t mail_capacity
 Mail capacity if available.
 
CargoArray all_capacities {}
 Capacities for all cargoes.
 

Detailed Description

Extra information about refitted cargo and capacity.

Definition at line 42 of file vehicle_gui.h.

Member Function Documentation

◆ FillDefaultCapacities()

void TestedEngineDetails::FillDefaultCapacities ( const Engine e)

Definition at line 892 of file build_vehicle_gui.cpp.

Field Documentation

◆ all_capacities

CargoArray TestedEngineDetails::all_capacities {}

Capacities for all cargoes.

Definition at line 47 of file vehicle_gui.h.

◆ capacity

uint TestedEngineDetails::capacity

Cargo capacity.

Definition at line 45 of file vehicle_gui.h.

Referenced by DrawAircraftPurchaseInfo().

◆ cargo

CargoID TestedEngineDetails::cargo

Cargo type.

Definition at line 44 of file vehicle_gui.h.

Referenced by DrawAircraftPurchaseInfo().

◆ cost

Money TestedEngineDetails::cost

Refit cost.

Definition at line 43 of file vehicle_gui.h.

Referenced by DrawAircraftPurchaseInfo(), and ReplaceVehicleWindow::OnPaint().

◆ mail_capacity

uint16_t TestedEngineDetails::mail_capacity

Mail capacity if available.

Definition at line 46 of file vehicle_gui.h.

Referenced by DrawAircraftPurchaseInfo().


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