OpenTTD: EngineInfo Struct Reference

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Data Fields
EngineInfo Struct Reference

Information about a vehicle. More...

`#include <engine_type.h>`

## Data Fields
Date | base_intro
| Basic date of engine introduction (without random parts).
Year | lifelength
| Lifetime of a single vehicle.
Year | base_life
| Basic duration of engine availability (without random parts). `0xFF` means infinite life.
byte | decay_speed
byte | load_amount
byte | climates
| Climates supported by the engine.
CargoID | cargo_type
uint32 | refit_mask
byte | refit_cost
byte | misc_flags
| Miscellaneous flags.
byte | callback_mask
| Bitmask of vehicle callbacks that have to be called.
int8 | retire_early
| Number of years early to retire vehicle.
StringID | string_id
| Default name of engine.
uint16 | cargo_age_period
| Number of ticks before carried cargo is aged.

## Detailed Description

Information about a vehicle.

See Also
  table/engines.h

Definition at line 132 of file engine_type.h.

## Field Documentation

byte EngineInfo::misc_flags

Miscellaneous flags.

See Also
  EngineMiscFlags

Definition at line 142 of file engine_type.h.

Referenced by AcceptEnginePreview(), AircraftVehicleChangeInfo(), RefitWindow::BuildRefitList(), CheckAutoreplaceValidity(), CmdBuildRoadVehicle(), Train::ConsistChanged(), Engine::DetermineCapacity(), FinaliseEngineArray(), GetCompanyRoadtypes(), GetLoadAmount(), NewVehicleAvailable(), RailVehicleChangeInfo(), RefitVehicle(), RoadVehicleChangeInfo(), and ShipVehicleChangeInfo().

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

- src/engine_type.h