|
OpenTTD Source 20251117-master-g7398d2e290
|
Cached often queried values common to all vehicles. More...
#include <vehicle_base.h>
Public Member Functions | |
| auto | operator<=> (const VehicleCache &) const =default |
Data Fields | |
| uint16_t | cached_max_speed = 0 |
| Maximum speed of the consist (minimum of the max speed of all vehicles in the consist). | |
| uint16_t | cached_cargo_age_period = 0 |
| Number of ticks before carried cargo is aged. | |
| uint8_t | cached_vis_effect = 0 |
| Visual effect to show (see VisualEffect) | |
Cached often queried values common to all vehicles.
Definition at line 92 of file vehicle_base.h.
| uint16_t VehicleCache::cached_cargo_age_period = 0 |
Number of ticks before carried cargo is aged.
Definition at line 94 of file vehicle_base.h.
Referenced by UpdateAircraftCache(), and Ship::UpdateCache().
| uint16_t VehicleCache::cached_max_speed = 0 |
Maximum speed of the consist (minimum of the max speed of all vehicles in the consist).
Definition at line 93 of file vehicle_base.h.
Referenced by Train::ConsistChanged(), GetAircraftFlightLevelBounds(), Ship::GetCurrentMaxSpeed(), Aircraft::GetDisplayMaxSpeed(), RoadVehicle::GetDisplayMaxSpeed(), Ship::GetDisplayMaxSpeed(), Train::GetDisplayMaxSpeed(), LoadUnloadVehicle(), RoadVehUpdateCache(), ShipAccelerate(), UpdateAircraftCache(), UpdateAircraftSpeed(), Ship::UpdateCache(), and VehicleMaxSpeedSorter().
| uint8_t VehicleCache::cached_vis_effect = 0 |
Visual effect to show (see VisualEffect)
Definition at line 96 of file vehicle_base.h.
Referenced by Vehicle::ShowVisualEffect().