OpenTTD Source: src/engine_base.h File Reference

OpenTTD Source 14.0-beta1

Data Structures | Typedefs | Enumerations | Functions | Variables
engine_base.h File Reference
`#include "engine_type.h"`
`#include "vehicle_type.h"`
`#include "core/pool_type.hpp"`
`#include "newgrf_commons.h"`
`#include "timer/timer_game_calendar.h"`

Go to the source code of this file.

## Data Structures
struct | WagonOverride
struct | Engine
struct | Engine::EngineTypeFilter
struct | EngineIDMapping
struct | EngineOverrideManager
| Stores the mapping of EngineID to the internal id of newgrfs. More...

## Typedefs
typedef Pool< Engine, EngineID, 64, 64000 > | EnginePool

## Enumerations
enum | EngineDisplayFlags : byte { EngineDisplayFlags::None = 0, EngineDisplayFlags::HasVariants = (1U << 0), EngineDisplayFlags::IsFolded = (1U << 1), EngineDisplayFlags::Shaded = (1U << 2) }
| Flags used client-side in the purchase/autorenew engine list. More...

## Functions
const EngineInfo * | EngInfo (EngineID e)
const RailVehicleInfo * | RailVehInfo (EngineID e)
const RoadVehicleInfo * | RoadVehInfo (EngineID e)
const ShipVehicleInfo * | ShipVehInfo (EngineID e)
const AircraftVehicleInfo * | AircraftVehInfo (EngineID e)

## Variables
EnginePool | _engine_pool
EngineOverrideManager | _engine_mngr

## Detailed Description

Base class for engines.

Definition in file engine_base.h.

## Enumeration Type Documentation

## ◆ EngineDisplayFlags

enum EngineDisplayFlags : byte
| strong

Flags used client-side in the purchase/autorenew engine list.

Enumerator
None | No flag set.
HasVariants | Set if engine has variants.
IsFolded | Set if display of variants should be folded (hidden).
Shaded | Set if engine should be masked.

Definition at line 26 of file engine_base.h.