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