OpenTTD Source  20240917-master-g9ab0a47812
RailVehicleInfo Struct Reference

Information about a rail vehicle. More...

#include <engine_type.h>

Data Fields

uint8_t image_index
 
RailVehicleTypes railveh_type
 
uint8_t 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.
 
uint8_t 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.
 
uint8_t capacity
 Cargo capacity of vehicle; For multiheaded engines the capacity of each single engine.
 
uint8_t 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.
 
uint8_t pow_wag_weight
 Extra weight applied to consist if wagon should be powered.
 
uint8_t visual_effect
 Bitstuffed NewGRF visual effect data.
 
uint8_t shorten_factor
 length on main map for this type is 8 - shorten_factor
 
uint8_t tractive_effort
 Tractive effort coefficient.
 
uint8_t air_drag
 Coefficient of air drag.
 
uint8_t 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: