OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
51 Price running_cost_class;
116 Price running_cost_class;
141 CargoTypes refit_mask;
@ EF_RAIL_TILTS
Rail vehicle tilts in curves.
static const EngineID INVALID_ENGINE
Constant denoting an invalid engine.
Year base_life
Basic duration of engine availability (without random parts). 0xFF means infinite life.
byte pow_wag_weight
Extra weight applied to consist if wagon should be powered.
byte subtype
Type of aircraft.
byte canal_speed_frac
Fraction of maximum speed for canal/river tiles.
Price
Enumeration of all base prices for use with Prices.
@ EC_STEAM
Steam rail engine.
uint16 passenger_capacity
Passenger capacity (persons).
@ EF_NO_BREAKDOWN_SMOKE
Do not show black smoke during a breakdown.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
uint16 max_speed
Maximum speed (1 unit = 8 mph = 12.8 km-ish/h)
uint16 power
Power of engine (hp); For multiheaded engines the sum of both engine powers.
Information about a vehicle.
Date base_intro
Basic date of engine introduction (without random parts).
RoadType roadtype
Road type.
uint8 air_drag
Coefficient of air drag.
byte cost_factor
Purchase cost factor; For multiheaded engines the sum of both engine prices.
@ EC_ELECTRIC
Electric rail engine.
Year lifelength
Lifetime of a single vehicle.
byte visual_effect
Bitstuffed NewGRF visual effect data.
uint16 max_speed
Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h)
@ ENGINE_EXCLUSIVE_PREVIEW
This vehicle is in the exclusive preview stage, either being used or being offered to a company.
@ EC_MAGLEV
Maglev engine.
byte visual_effect
Bitstuffed NewGRF visual effect data.
uint16 EngineID
Unique identification number of an engine.
byte ai_passenger_only
Bit value to tell AI that this engine is for passenger use only.
Information about a rail vehicle.
EngineClass engclass
Class of engine for this vehicle.
@ EF_AUTO_REFIT
Automatic refitting is allowed.
AircraftSubTypeBits
AircraftVehicleInfo subtypes, bitmask type.
RailType
Enumeration for all possible railtypes.
byte air_drag
Coefficient of air drag.
byte callback_mask
Bitmask of vehicle callbacks that have to be called.
Information about a road vehicle.
byte visual_effect
Bitstuffed NewGRF visual effect data.
@ EF_USES_2CC
Vehicle uses two company colours.
RailVehicleTypes
Available types of rail vehicles.
static const uint MAX_LENGTH_ENGINE_NAME_CHARS
The maximum length of an engine name in characters including '\0'.
uint16 max_range
Maximum range of this aircraft.
int32 Date
The type to store our dates in.
@ EC_DIESEL
Diesel rail engine.
@ EF_RAIL_IS_MU
Rail vehicle is a multiple-unit (DMU/EMU)
int8 retire_early
Number of years early to retire vehicle.
byte tractive_effort
Tractive effort coefficient.
RoadType
The different roadtypes we support.
uint16 pow_wag_power
Extra power applied to consist if wagon should be powered.
uint16 weight
Weight of vehicle (tons); For multiheaded engines the weight of each single engine.
EngineClass
Type of rail engine.
@ ENGINE_AVAILABLE
This vehicle is available to everyone.
byte misc_flags
Miscellaneous flags.
@ RAILVEH_WAGON
simple wagon, not motorized
bool old_refittable
Is ship refittable; only used during initialisation. Later use EngineInfo::refit_mask.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
byte shorten_factor
length on main map for this type is 8 - shorten_factor
uint16 max_speed
Maximum speed (1 unit = 1/1.6 mph = 1 km-ish/h)
@ EF_NO_DEFAULT_CARGO_MULTIPLIER
Use the new capacity algorithm. The default cargotype of the vehicle does not affect capacity multipl...
@ RAILVEH_MULTIHEAD
indicates a combination of two locomotives
byte user_def_data
Property 0x25: "User-defined bit mask" Used only for (very few) NewGRF vehicles.
Information about a ship vehicle.
uint8 tractive_effort
Coefficient of tractive effort.
byte mail_capacity
Mail capacity (bags).
@ EF_SPRITE_STACK
Draw vehicle by stacking multiple sprites.
uint8 weight
Weight in 1/4t units.
byte shorten_factor
length on main map for this type is 8 - shorten_factor
@ AIR_CTOL
Conventional Take Off and Landing, i.e. planes.
EngineFlags
Engine.flags is a bitmask, with the following values.
uint8 power
Power in 10hp units.
byte CargoID
Cargo slots to indicate a cargo type within a game.
EngineMiscFlags
EngineInfo.misc_flags is a bitmask, with the following values.
@ EF_RAIL_FLIPS
Rail vehicle can be flipped in the depot.
@ RAILVEH_SINGLEHEAD
indicates a "standalone" locomotive
uint16 max_speed
Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h)
byte running_cost
Running cost of engine; For multiheaded engines the sum of both running costs.
@ EF_ROAD_TRAM
Road vehicle is a tram/light rail vehicle.
byte climates
Climates supported by the engine.
byte capacity
Cargo capacity of vehicle; For multiheaded engines the capacity of each single engine.
StringID string_id
Default name of engine.
Information about a aircraft vehicle.
uint ApplyWaterClassSpeedFrac(uint raw_speed, bool is_ocean) const
Apply ocean/canal speed fraction to a velocity.
uint16 cargo_age_period
Number of ticks before carried cargo is aged.
int16 curve_speed_mod
Modifier to maximum speed in curves (fixed-point binary with 8 fractional bits)
byte ocean_speed_frac
Fraction of maximum speed for ocean tiles.
@ EC_MONORAIL
Mono rail engine.