OpenTTD Source: src/base_consist.h File Reference

OpenTTD Source 15.3

Data Structures | Typedefs | Enumerations
base_consist.h File Reference

Properties for front vehicles/consists. More...

`#include "core/enum_type.hpp"`
`#include "order_type.h"`
`#include "timer/timer_game_tick.h"`

Go to the source code of this file.

## Data Structures
struct | BaseConsist
| Various front vehicle properties that are preserved when autoreplacing, using order-backup or switching front engines within a consist. More...

## Typedefs
using | VehicleFlags = EnumBitSet< VehicleFlag, uint16_t >

## Enumerations
enum class | VehicleFlag : uint8_t { LoadingFinished = 0 , CargoUnloading = 1 , BuiltAsPrototype = 2 , TimetableStarted = 3 , AutofillTimetable = 4 , AutofillPreserveWaitTime = 5 , StopLoading = 6 , PathfinderLost = 7 , ServiceIntervalIsCustom = 8 , ServiceIntervalIsPercent = 9 }
| Bit numbers in Vehicle::vehicle_flags. More...

## Detailed Description

Properties for front vehicles/consists.

Definition in file base_consist.h.

## Typedef Documentation

## ◆ VehicleFlags

using VehicleFlags = EnumBitSet<VehicleFlag, uint16_t>

Definition at line 30 of file base_consist.h.

## Enumeration Type Documentation

## ◆ VehicleFlag

enum class VehicleFlag : uint8_t
| strong

Bit numbers in Vehicle::vehicle_flags.

Enumerator
LoadingFinished | Vehicle has finished loading.
CargoUnloading | Vehicle is unloading cargo.
BuiltAsPrototype | Vehicle is a prototype (accepted as exclusive preview).
TimetableStarted | Whether the vehicle has started running on the timetable yet.
AutofillTimetable | Whether the vehicle should fill in the timetable automatically.
AutofillPreserveWaitTime | Whether non-destructive auto-fill should preserve waiting times.
StopLoading | Don't load anymore during the next load cycle.
PathfinderLost | Vehicle's pathfinder is lost.
ServiceIntervalIsCustom | Service interval is custom.
ServiceIntervalIsPercent | Service interval is percent.

Definition at line 18 of file base_consist.h.