uint32_tmotion_counter;///< counter to occasionally play a vehicle sound.
uint8_tprogress;///< The percentage (if divided by 256) this vehicle already crossed the tile unit.
uint16_trandom_bits;///< Bits used for randomized variational spritegroups.
uint8_twaiting_triggers;///< Triggers to be yet matched before rerandomizing the random bits.
uint16_trandom_bits;///< Bits used for randomized variational spritegroups.
StationIDlast_station_visited;///< The last station we stopped at.
StationIDlast_loading_station;///< Last station the vehicle has stopped at and could possibly leave from with any cargo loaded.
TimerGameTick::TickCounterlast_loading_tick;///< Last TimerGameTick::counter tick that the vehicle has stopped at a station and could possibly leave with any cargo loaded.
VehicleCargoListcargo;///< The cargo this vehicle is carrying
CargoIDcargo_type;///< type of cargo this vehicle is carrying
uint8_tcargo_subtype;///< Used for livery refits (NewGRF variations)
uint16_tcargo_cap;///< total capacity
uint16_trefit_cap;///< Capacity left over from before last refit.
VehicleCargoListcargo;///< The cargo this vehicle is carrying
uint16_tcargo_age_counter;///< Ticks till cargo is aged next.
int8_ttrip_occupancy;///< NOSAVE: Occupancy of vehicle of the current trip (updated after leaving a station).
uint8_tday_counter;///< Increased by one for each day
uint8_ttick_counter;///< Increased by one for each tick
uint8_trunning_ticks;///< Number of ticks this vehicle was not stopped this day
uint16_tload_unload_ticks;///< Ticks to wait before starting next cycle.
uint8_tvehstatus;///< Status
uint8_tsubtype;///< subtype (Filled with values from #AircraftSubType/#DisasterSubType/#EffectVehicleType/#GroundVehicleSubtypeFlags)
Ordercurrent_order;///< The current order (+ status, like: loading)
union{
@ -354,13 +356,11 @@ public:
Order*old_orders;///< Only used during conversion of old save games
};
uint16_tload_unload_ticks;///< Ticks to wait before starting next cycle.
GroupIDgroup_id;///< Index of group Pool array
uint8_tsubtype;///< subtype (Filled with values from #AircraftSubType/#DisasterSubType/#EffectVehicleType/#GroundVehicleSubtypeFlags)
NewGRFCachegrf_cache;///< Cache of often used calculated NewGRF values
VehicleCachevcache;///< Cache of often used vehicle values.
GroupIDgroup_id;///< Index of group Pool array
mutableMutableSpriteCachesprite_cache;///< Cache of sprites and values related to recalculating them, see #MutableSpriteCache