OpenTTD Source
12.0-beta2
|
VehicleOrderID cur_implicit_order_index
The index to the current implicit order.
std::string name
Name of vehicle.
static bool HasBit(const T x, const uint8 y)
Checks if a bit in a value is set.
@ VF_AUTOFILL_TIMETABLE
Whether the vehicle should fill in the timetable automatically.
@ VF_SERVINT_IS_CUSTOM
Service interval is custom.
uint16 vehicle_flags
Used for gradual loading and other miscellaneous things (.
VehicleOrderID cur_real_order_index
The index to the current real (non-implicit) order.
int32 lateness_counter
How many ticks late (or early if negative) this vehicle is.
@ VF_SERVINT_IS_PERCENT
Service interval is percent.
uint32 current_order_time
How many ticks have passed since this order started.
Date timetable_start
When the vehicle is supposed to start the timetable.
@ VF_AUTOFILL_PRES_WAIT_TIME
Whether non-destructive auto-fill should preserve waiting times.
@ VF_TIMETABLE_STARTED
Whether the vehicle has started running on the timetable yet.
uint16 service_interval
The interval for (automatic) servicing; either in days or %.
static T ToggleBit(T &x, const uint8 y)
Toggles a bit in a variable.
static T SetBit(T &x, const uint8 y)
Set a bit in a variable.
Various front vehicle properties that are preserved when autoreplacing, using order-backup or switchi...
void CopyConsistPropertiesFrom(const BaseConsist *src)
Copy properties of other BaseConsist.