OpenTTD Source 20241224-master-gf74b0cf984
AccelerationSlowdownParams Struct Reference

Data structure for storing engine speed changes of an acceleration type. More...

Data Fields

uint8_t small_turn
 Speed change due to a small turn.
 
uint8_t large_turn
 Speed change due to a large turn.
 
uint8_t z_up
 Fraction to remove when moving up.
 
uint8_t z_down
 Fraction to add when moving down.
 

Detailed Description

Data structure for storing engine speed changes of an acceleration type.

Definition at line 3039 of file train_cmd.cpp.

Field Documentation

◆ large_turn

uint8_t AccelerationSlowdownParams::large_turn

Speed change due to a large turn.

Definition at line 3041 of file train_cmd.cpp.

Referenced by TrainController().

◆ small_turn

uint8_t AccelerationSlowdownParams::small_turn

Speed change due to a small turn.

Definition at line 3040 of file train_cmd.cpp.

Referenced by TrainController().

◆ z_down

uint8_t AccelerationSlowdownParams::z_down

Fraction to add when moving down.

Definition at line 3043 of file train_cmd.cpp.

Referenced by AffectSpeedByZChange().

◆ z_up

uint8_t AccelerationSlowdownParams::z_up

Fraction to remove when moving up.

Definition at line 3042 of file train_cmd.cpp.

Referenced by AffectSpeedByZChange().


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