Types related to engines. More...
#include "economy_type.h"#include "rail_type.h"#include "cargo_type.h"#include "date_type.h"#include "sound_type.h"#include "strings_type.h"Go to the source code of this file.
Data Structures | |
| struct | RailVehicleInfo |
| struct | ShipVehicleInfo |
| struct | AircraftVehicleInfo |
| struct | RoadVehicleInfo |
| struct | EngineInfo |
| Information about a vehicle. More... | |
Typedefs | |
| typedef uint16 | EngineID |
Enumerations | |
| enum | RailVehicleTypes { RAILVEH_SINGLEHEAD, RAILVEH_MULTIHEAD, RAILVEH_WAGON } |
| enum | EngineClass { EC_STEAM, EC_DIESEL, EC_ELECTRIC, EC_MONORAIL, EC_MAGLEV } |
| enum | AircraftSubTypeBits { AIR_HELI = 0, AIR_CTOL = 1, AIR_FAST = 2 } |
| enum | EngineMiscFlags { EF_RAIL_TILTS = 0, EF_ROAD_TRAM = 0, EF_USES_2CC = 1, EF_RAIL_IS_MU = 2, EF_RAIL_FLIPS = 3 } |
EngineInfo.misc_flags is a bitmask, with the following values. More... | |
| enum | EngineFlags { ENGINE_AVAILABLE = 1, ENGINE_EXCLUSIVE_PREVIEW = 2, ENGINE_OFFER_WINDOW_OPEN = 4 } |
Engine.flags is a bitmask, with the following values. More... | |
Variables | |
| static const uint | NUM_VEHICLE_TYPES = 6 |
| static const uint | MAX_LENGTH_ENGINE_NAME_CHARS = 32 |
| The maximum length of an engine name in characters including ''. | |
| static const uint | MAX_LENGTH_ENGINE_NAME_PIXELS = 160 |
| The maximum length of an engine name in pixels. | |
| static const EngineID | INVALID_ENGINE = 0xFFFF |
Types related to engines.
Definition in file engine_type.h.
| enum AircraftSubTypeBits |
Definition at line 76 of file engine_type.h.
| enum EngineFlags |
Engine.flags is a bitmask, with the following values.
Definition at line 143 of file engine_type.h.
| enum EngineMiscFlags |
EngineInfo.misc_flags is a bitmask, with the following values.
| EF_RAIL_TILTS |
Rail vehicle tilts in curves. |
| EF_ROAD_TRAM |
Road vehicle is a tram/light rail vehicle. |
| EF_USES_2CC |
Vehicle uses two company colours. |
| EF_RAIL_IS_MU |
Rail vehicle is a multiple-unit (DMU/EMU). |
| EF_RAIL_FLIPS |
Rail vehicle can be flipped in the depot. |
Definition at line 132 of file engine_type.h.
| enum RailVehicleTypes |
| RAILVEH_SINGLEHEAD |
indicates a "standalone" locomotive |
| RAILVEH_MULTIHEAD |
indicates a combination of two locomotives |
| RAILVEH_WAGON |
simple wagon, not motorized |
Definition at line 26 of file engine_type.h.
1.7.1