OpenTTD Source
20241108-master-g80f628063a
|
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, MixedCargoType > | cargo_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 |
uint8_t EngineInfo::misc_flags |
Miscellaneous flags.
Definition at line 155 of file engine_type.h.
Referenced by RefitWindow::BuildRefitList(), CheckAutoreplaceValidity(), and RefitVehicle().