|
@@ -35,24 +35,25 @@ enum VehStatus {
|
|
|
VS_CRASHED = 0x80, ///< Vehicle is crashed.
|
|
|
};
|
|
|
|
|
|
/** Bit numbers in #Vehicle::vehicle_flags. */
|
|
|
enum VehicleFlags {
|
|
|
VF_LOADING_FINISHED, ///< Vehicle has finished loading.
|
|
|
VF_CARGO_UNLOADING, ///< Vehicle is unloading cargo.
|
|
|
VF_BUILT_AS_PROTOTYPE, ///< Vehicle is a prototype (accepted as exclusive preview).
|
|
|
VF_TIMETABLE_STARTED, ///< Whether the vehicle has started running on the timetable yet.
|
|
|
VF_AUTOFILL_TIMETABLE, ///< Whether the vehicle should fill in the timetable automatically.
|
|
|
VF_AUTOFILL_PRES_WAIT_TIME, ///< Whether non-destructive auto-fill should preserve waiting times
|
|
|
VF_STOP_LOADING, ///< Don't load anymore during the next load cycle.
|
|
|
VF_PATHFINDER_LOST, ///< Vehicle's pathfinder is lost.
|
|
|
};
|
|
|
|
|
|
/** Bit numbers used to indicate which of the #NewGRFCache values are valid. */
|
|
|
enum NewGRFCacheValidValues {
|
|
|
NCVV_POSITION_CONSIST_LENGTH = 0, ///< This bit will be set if the NewGRF var 40 currently stored is valid.
|
|
|
NCVV_POSITION_SAME_ID_LENGTH = 1, ///< This bit will be set if the NewGRF var 41 currently stored is valid.
|
|
|
NCVV_CONSIST_CARGO_INFORMATION = 2, ///< This bit will be set if the NewGRF var 42 currently stored is valid.
|
|
|
NCVV_COMPANY_INFORMATION = 3, ///< This bit will be set if the NewGRF var 43 currently stored is valid.
|
|
|
NCVV_END, ///< End of the bits.
|
|
|
};
|
|
|
|
|
|
/** Cached often queried (NewGRF) values */
|