OpenTTD Source  20241108-master-g80f628063a
RoadVehicleInfo Struct Reference

Information about a road vehicle. More...

#include <engine_type.h>

Data Fields

uint8_t image_index
 
uint8_t cost_factor
 
uint8_t running_cost
 
Price running_cost_class
 
SoundID sfx
 
uint16_t max_speed
 Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h)
 
uint8_t capacity
 
uint8_t weight
 Weight in 1/4t units.
 
uint8_t power
 Power in 10hp units.
 
uint8_t tractive_effort
 Coefficient of tractive effort.
 
uint8_t air_drag
 Coefficient of air drag.
 
uint8_t visual_effect
 Bitstuffed NewGRF visual effect data.
 
uint8_t shorten_factor
 length on main map for this type is 8 - shorten_factor
 
RoadType roadtype
 Road type.
 

Detailed Description

Information about a road vehicle.

Definition at line 114 of file engine_type.h.


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