OpenTTD Source
20241120-master-g6d3adc6169
|
Information about a ship vehicle. More...
#include <engine_type.h>
Public Member Functions | |
uint | ApplyWaterClassSpeedFrac (uint raw_speed, bool is_ocean) const |
Apply ocean/canal speed fraction to a velocity. | |
Data Fields | |
uint8_t | image_index |
uint8_t | cost_factor |
uint8_t | acceleration |
Acceleration (1 unit = 1/3.2 mph per tick = 0.5 km-ish/h per tick) | |
uint16_t | max_speed |
Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) | |
uint16_t | capacity |
uint8_t | running_cost |
SoundID | sfx |
bool | old_refittable |
Is ship refittable; only used during initialisation. Later use EngineInfo::refit_mask. | |
uint8_t | visual_effect |
Bitstuffed NewGRF visual effect data. | |
uint8_t | ocean_speed_frac |
Fraction of maximum speed for ocean tiles. | |
uint8_t | canal_speed_frac |
Fraction of maximum speed for canal/river tiles. | |
Information about a ship vehicle.
Definition at line 67 of file engine_type.h.