OpenTTD Source: TestedEngineDetails Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
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.
CargoType | 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 853 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

CargoType 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:

- src/vehicle_gui.h
- src/build_vehicle_gui.cpp