OpenTTD Source 20241224-master-gf74b0cf984
|
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. | |
uint16_t | callback_mask |
Bitmask of vehicle callbacks that have to be called. | |
int8_t | retire_early |
Number of years early to retire vehicle. | |
ExtraEngineFlags | extra_flags |
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. | |
TimerGameCalendar::Date EngineInfo::base_intro |
Basic date of engine introduction (without random parts).
Definition at line 149 of file engine_type.h.
Referenced by AircraftVehicleChangeInfo(), CommonVehicleChangeInfo(), RailVehicleChangeInfo(), RoadVehicleChangeInfo(), SetYearEngineAgingStops(), ShipVehicleChangeInfo(), and StartupOneEngine().
TimerGameCalendar::Year EngineInfo::base_life |
Basic duration of engine availability (without random parts). 0xFF
means infinite life.
Definition at line 151 of file engine_type.h.
Referenced by CalcEngineReliability(), CommonVehicleChangeInfo(), and StartupOneEngine().
uint16_t EngineInfo::callback_mask |
Bitmask of vehicle callbacks that have to be called.
Definition at line 160 of file engine_type.h.
Referenced by AddArticulatedParts(), AircraftVehicleChangeInfo(), CalculateRefitMasks(), CmdReverseTrainDirection(), Train::ConsistChanged(), Engine::DetermineCapacity(), GetArticulatedRefitMasks(), GetBestFittingSubType(), GetCapacityOfArticulatedParts(), GetCargoSubtypeText(), GetCargoTypesOfArticulatedParts(), GetLoadAmount(), IsArticulatedVehicleRefittable(), IsEngineRefittable(), PlayVehicleSound(), RailVehicleChangeInfo(), RoadVehicleChangeInfo(), ShipVehicleChangeInfo(), and Vehicle::UpdateVisualEffect().
uint16_t EngineInfo::cargo_age_period |
Number of ticks before carried cargo is aged.
Definition at line 164 of file engine_type.h.
Referenced by AircraftVehicleChangeInfo(), Train::ConsistChanged(), RailVehicleChangeInfo(), RoadVehicleChangeInfo(), RoadVehUpdateCache(), ShipVehicleChangeInfo(), and UpdateAircraftCache().
std::variant<CargoLabel, MixedCargoType> EngineInfo::cargo_label |
Definition at line 156 of file engine_type.h.
CargoID EngineInfo::cargo_type |
Definition at line 155 of file engine_type.h.
uint8_t EngineInfo::climates |
Climates supported by the engine.
Definition at line 154 of file engine_type.h.
Referenced by AfterLoadGRFs(), CalculateRefitMasks(), CommonVehicleChangeInfo(), FinaliseEngineArray(), FixTTOEngines(), GetCompanyRailTypes(), GetCompanyRoadTypes(), GetRailTypes(), GetRoadTypes(), Engine::IsEnabled(), SetYearEngineAgingStops(), and StartupOneEngine().
uint8_t EngineInfo::decay_speed |
Definition at line 152 of file engine_type.h.
ExtraEngineFlags EngineInfo::extra_flags |
Definition at line 162 of file engine_type.h.
TimerGameCalendar::Year EngineInfo::lifelength |
Lifetime of a single vehicle.
Definition at line 150 of file engine_type.h.
Referenced by CommonVehicleChangeInfo(), Engine::GetLifeLengthInDays(), SetYearEngineAgingStops(), and StartupOneEngine().
uint8_t EngineInfo::load_amount |
Definition at line 153 of file engine_type.h.
uint8_t EngineInfo::misc_flags |
Miscellaneous flags.
Definition at line 159 of file engine_type.h.
Referenced by AfterLoadGame(), AfterLoadGRFs(), AircraftVehicleChangeInfo(), CheckAutoreplaceValidity(), Train::ConsistChanged(), Engine::DetermineCapacity(), GetEngineLiveryScheme(), GetLoadAmount(), RailVehicleChangeInfo(), RefitVehicle(), RoadVehicleChangeInfo(), and ShipVehicleChangeInfo().
uint8_t EngineInfo::refit_cost |
Definition at line 158 of file engine_type.h.
CargoTypes EngineInfo::refit_mask |
Definition at line 157 of file engine_type.h.
int8_t EngineInfo::retire_early |
Number of years early to retire vehicle.
Definition at line 161 of file engine_type.h.
Referenced by AircraftVehicleChangeInfo(), CalcEngineReliability(), RailVehicleChangeInfo(), RoadVehicleChangeInfo(), ShipVehicleChangeInfo(), and StartupOneEngine().
StringID EngineInfo::string_id |
Default name of engine.
Definition at line 163 of file engine_type.h.
Referenced by FinaliseEngineArray(), and Engine::IsEnabled().
EngineID EngineInfo::variant_id |
Engine variant ID. If set, will be treated specially in purchase lists.
Definition at line 165 of file engine_type.h.
Referenced by AircraftVehicleChangeInfo(), CalcEngineReliability(), FinaliseEngineArray(), Engine::IsVariantHidden(), RailVehicleChangeInfo(), RoadVehicleChangeInfo(), ShipVehicleChangeInfo(), and StartupOneEngine().