OpenTTD Source: RailVehicleInfo Struct Reference

OpenTTD Source 14.0-beta3

Data Fields
RailVehicleInfo Struct Reference

Information about a rail vehicle. More...

`#include <engine_type.h>`

## Data Fields
byte | image_index
RailVehicleTypes | railveh_type
byte | cost_factor
| Purchase cost factor; For multiheaded engines the sum of both engine prices.
RailType | railtype
| Railtype, mangled if elrail is disabled.
RailType | intended_railtype
| Intended railtype, regardless of elrail being enabled or disabled.
uint16_t | max_speed
| Maximum speed (1 unit = 1/1.6 mph = 1 km-ish/h)
uint16_t | power
| Power of engine (hp); For multiheaded engines the sum of both engine powers.
uint16_t | weight
| Weight of vehicle (tons); For multiheaded engines the weight of each single engine.
byte | running_cost
| Running cost of engine; For multiheaded engines the sum of both running costs.
Price | running_cost_class
EngineClass | engclass
| Class of engine for this vehicle.
byte | capacity
| Cargo capacity of vehicle; For multiheaded engines the capacity of each single engine.
byte | ai_passenger_only
| Bit value to tell AI that this engine is for passenger use only.
uint16_t | pow_wag_power
| Extra power applied to consist if wagon should be powered.
byte | pow_wag_weight
| Extra weight applied to consist if wagon should be powered.
byte | visual_effect
| Bitstuffed NewGRF visual effect data.
byte | shorten_factor
| length on main map for this type is 8 - shorten_factor
byte | tractive_effort
| Tractive effort coefficient.
byte | air_drag
| Coefficient of air drag.
byte | user_def_data
| Property 0x25: "User-defined bit mask" Used only for (very few) NewGRF vehicles.
int16_t | curve_speed_mod
| Modifier to maximum speed in curves (fixed-point binary with 8 fractional bits)

## Detailed Description

Information about a rail vehicle.

Definition at line 42 of file engine_type.h.

The documentation for this struct was generated from the following file:

- src/engine_type.h