OpenTTD Source  20241108-master-g80f628063a
BaseConsist Struct Reference

Various front vehicle properties that are preserved when autoreplacing, using order-backup or switching front engines within a consist. More...

#include <base_consist.h>

Inheritance diagram for BaseConsist:
OrderBackup Vehicle SpecializedVehicle< DisasterVehicle, VEH_DISASTER > SpecializedVehicle< Ship, VEH_SHIP > SpecializedVehicle< Aircraft, VEH_AIRCRAFT > SpecializedVehicle< EffectVehicle, VEH_EFFECT > SpecializedVehicle< T, Type > DisasterVehicle Ship Aircraft EffectVehicle GroundVehicle< Train, VEH_TRAIN > GroundVehicle< RoadVehicle, VEH_ROAD > GroundVehicle< T, Type > Train RoadVehicle

Public Member Functions

void CopyConsistPropertiesFrom (const BaseConsist *src)
 Copy properties of other BaseConsist. More...
 
void ResetDepotUnbunching ()
 Resets all the data used for depot unbunching.
 

Data Fields

std::string name
 Name of vehicle.
 
TimerGameTick::Ticks current_order_time
 How many ticks have passed since this order started.
 
TimerGameTick::Ticks lateness_counter
 How many ticks late (or early if negative) this vehicle is.
 
TimerGameTick::TickCounter timetable_start
 At what tick of TimerGameTick::counter the vehicle should start its timetable.
 
TimerGameTick::TickCounter depot_unbunching_last_departure
 When the vehicle last left its unbunching depot.
 
TimerGameTick::TickCounter depot_unbunching_next_departure
 When the vehicle will next try to leave its unbunching depot.
 
TimerGameTick::Ticks round_trip_time
 How many ticks for a single circumnavigation of the orders.
 
uint16_t service_interval
 The interval for (automatic) servicing; either in days or %.
 
VehicleOrderID cur_real_order_index
 The index to the current real (non-implicit) order.
 
VehicleOrderID cur_implicit_order_index
 The index to the current implicit order.
 
uint16_t vehicle_flags
 Used for gradual loading and other miscellaneous things (. More...
 

Detailed Description

Various front vehicle properties that are preserved when autoreplacing, using order-backup or switching front engines within a consist.

Definition at line 17 of file base_consist.h.

Member Function Documentation

◆ CopyConsistPropertiesFrom()

Field Documentation

◆ vehicle_flags

uint16_t BaseConsist::vehicle_flags

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