OpenTTD Source 20241224-master-gf74b0cf984
|
Variables that are cached to improve performance and such. More...
#include <train.h>
Public Member Functions | |
auto | operator<=> (const TrainCache &) const =default |
Data Fields | |
const struct SpriteGroup * | cached_override |
bool | cached_tilt |
train can tilt; feature provides a bonus in curves | |
uint8_t | user_def_data |
Cached property 0x25. Can be set by Callback 0x36. | |
int16_t | cached_curve_speed_mod |
curve speed modifier of the entire train | |
uint16_t | cached_max_curve_speed |
max consist speed limited by curves | |
int16_t TrainCache::cached_curve_speed_mod |
curve speed modifier of the entire train
Definition at line 80 of file train.h.
Referenced by Train::ConsistChanged(), and Train::GetCurveSpeedLimit().
uint16_t TrainCache::cached_max_curve_speed |
max consist speed limited by curves
Definition at line 81 of file train.h.
Referenced by Train::ConsistChanged(), Train::GetCurrentMaxSpeed(), and TrainController().
const struct SpriteGroup* TrainCache::cached_override |
bool TrainCache::cached_tilt |
train can tilt; feature provides a bonus in curves
Definition at line 77 of file train.h.
Referenced by Train::ConsistChanged(), and Train::GetCurveSpeedLimit().
uint8_t TrainCache::user_def_data |