VehicleFlag
Bit numbers in Vehicle::vehicle_flags.
@ PathfinderLost
Vehicle's pathfinder is lost.
@ StopLoading
Don't load anymore during the next load cycle.
@ AutofillTimetable
Whether the vehicle should fill in the timetable automatically.
@ ServiceIntervalIsCustom
Service interval is custom.
@ ServiceIntervalIsPercent
Service interval is percent.
@ BuiltAsPrototype
Vehicle is a prototype (accepted as exclusive preview).
@ LoadingFinished
Vehicle has finished loading.
@ CargoUnloading
Vehicle is unloading cargo.
@ TimetableStarted
Whether the vehicle has started running on the timetable yet.
@ AutofillPreserveWaitTime
Whether non-destructive auto-fill should preserve waiting times.
uint64_t TickCounter
The type that the tick counter is stored in.
int32_t Ticks
The type to store ticks in.
Type (helpers) for enums.
uint8_t VehicleOrderID
The index of an order within its current vehicle (not pool related)
Various front vehicle properties that are preserved when autoreplacing, using order-backup or switchi...
std::string name
Name of vehicle.
TimerGameTick::Ticks current_order_time
How many ticks have passed since this order started.
TimerGameTick::TickCounter depot_unbunching_next_departure
When the vehicle will next try to leave its unbunching depot.
VehicleOrderID cur_real_order_index
The index to the current real (non-implicit) order.
TimerGameTick::Ticks round_trip_time
How many ticks for a single circumnavigation of the orders.
VehicleFlags vehicle_flags
Used for gradual loading and other miscellaneous things (.
TimerGameTick::TickCounter depot_unbunching_last_departure
When the vehicle last left its unbunching depot.
VehicleOrderID cur_implicit_order_index
The index to the current implicit order.
TimerGameTick::TickCounter timetable_start
At what tick of TimerGameTick::counter the vehicle should start its timetable.
TimerGameTick::Ticks lateness_counter
How many ticks late (or early if negative) this vehicle is.
uint16_t service_interval
The interval for (automatic) servicing; either in days or %.
void CopyConsistPropertiesFrom(const BaseConsist *src)
Copy properties of other BaseConsist.
void ResetDepotUnbunching()
Resets all the data used for depot unbunching.
Definition of the tick-based game-timer.