engine_type.h File Reference

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

Detailed Description

Types related to engines.

Definition in file engine_type.h.


Enumeration Type Documentation

Enumerator:
AIR_CTOL 

Conventional Take Off and Landing, i.e. planes.

Definition at line 76 of file engine_type.h.

Engine.flags is a bitmask, with the following values.

Enumerator:
ENGINE_AVAILABLE 

This vehicle is available to everyone.

ENGINE_EXCLUSIVE_PREVIEW 

This vehicle is in the exclusive preview stage, either being used or being offered to a company.

ENGINE_OFFER_WINDOW_OPEN 

The exclusive offer window is currently open for a company.

Definition at line 143 of file engine_type.h.

EngineInfo.misc_flags is a bitmask, with the following values.

Enumerator:
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.

Enumerator:
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.


Generated on Wed Apr 13 00:48:00 2011 for OpenTTD by  doxygen 1.6.1