OpenTTD Source 20250428-master-ga5578166bb
RefitDesc Struct Reference

Simulated cargo type and capacity for prediction of future links. More...

#include <vehicle_base.h>

Public Member Functions

 RefitDesc (CargoType cargo, uint16_t capacity, uint16_t remaining)
 

Data Fields

CargoType cargo
 Cargo type the vehicle will be carrying.
 
uint16_t capacity
 Capacity the vehicle will have.
 
uint16_t remaining
 Capacity remaining from before the previous refit.
 

Detailed Description

Simulated cargo type and capacity for prediction of future links.

Definition at line 199 of file vehicle_base.h.

Constructor & Destructor Documentation

◆ RefitDesc()

RefitDesc::RefitDesc ( CargoType  cargo,
uint16_t  capacity,
uint16_t  remaining 
)
inline

Definition at line 203 of file vehicle_base.h.

Field Documentation

◆ capacity

uint16_t RefitDesc::capacity

Capacity the vehicle will have.

Definition at line 201 of file vehicle_base.h.

◆ cargo

CargoType RefitDesc::cargo

Cargo type the vehicle will be carrying.

Definition at line 200 of file vehicle_base.h.

◆ remaining

uint16_t RefitDesc::remaining

Capacity remaining from before the previous refit.

Definition at line 202 of file vehicle_base.h.


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