OpenTTD Source  20241120-master-g6d3adc6169
EngineInfo Struct Reference

Information about a vehicle. More...

#include <engine_type.h>

Data Fields

TimerGameCalendar::Date base_intro
 Basic date of engine introduction (without random parts).
 
TimerGameCalendar::Year lifelength
 Lifetime of a single vehicle.
 
TimerGameCalendar::Year base_life
 Basic duration of engine availability (without random parts). 0xFF means infinite life.
 
uint8_t decay_speed
 
uint8_t load_amount
 
uint8_t climates
 Climates supported by the engine.
 
CargoID cargo_type
 
std::variant< CargoLabel, MixedCargoTypecargo_label
 
CargoTypes refit_mask
 
uint8_t refit_cost
 
uint8_t misc_flags
 Miscellaneous flags. More...
 
uint16_t callback_mask
 Bitmask of vehicle callbacks that have to be called.
 
int8_t retire_early
 Number of years early to retire vehicle.
 
StringID string_id
 Default name of engine.
 
uint16_t cargo_age_period
 Number of ticks before carried cargo is aged.
 
EngineID variant_id
 Engine variant ID. If set, will be treated specially in purchase lists.
 
ExtraEngineFlags extra_flags
 

Detailed Description

Information about a vehicle.

See also
table/engines.h

Definition at line 144 of file engine_type.h.

Field Documentation

◆ misc_flags

uint8_t EngineInfo::misc_flags

Miscellaneous flags.

See also
EngineMiscFlags

Definition at line 155 of file engine_type.h.

Referenced by RefitWindow::BuildRefitList(), CheckAutoreplaceValidity(), and RefitVehicle().


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