19 BaseConsist::~BaseConsist()
30 if (
this == src)
return;
Whether the vehicle has started running on the timetable yet.
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.
uint32 current_order_time
How many ticks have passed since this order started.
int32 lateness_counter
How many ticks late (or early if negative) this vehicle is.
uint16 service_interval
The interval for (automatic) servicing; either in days or %.
Functions related to low-level strings.
Various front vehicle properties that are preserved when autoreplacing, using order-backup or switchi...
Definition of base types and functions in a cross-platform compatible way.
void CopyConsistPropertiesFrom(const BaseConsist *src)
Copy properties of other BaseConsist.
A number of safeguards to prevent using unsafe methods.
Service interval is custom.
char * stredup(const char *s, const char *last)
Create a duplicate of the given string.
Whether the vehicle should fill in the timetable automatically.
Properties for front vehicles/consists.
Date timetable_start
When the vehicle is supposed to start the timetable.
char * name
Name of vehicle.
Base class for all vehicles.
static void free(const void *ptr)
Version of the standard free that accepts const pointers.
uint16 vehicle_flags
Used for gradual loading and other miscellaneous things (.
static bool HasBit(const T x, const uint8 y)
Checks if a bit in a value is set.
Whether non-destructive auto-fill should preserve waiting times.
VehicleOrderID cur_implicit_order_index
The index to the current implicit order.
VehicleOrderID cur_real_order_index
The index to the current real (non-implicit) order.
Service interval is percent.