Add order waypoint flags.
This commit is contained in:
@@ -137,6 +137,8 @@ public:
|
|||||||
inline OrderDepotTypeFlags GetDepotOrderType() const { return (OrderDepotTypeFlags)GB(this->flags, 0, 3); }
|
inline OrderDepotTypeFlags GetDepotOrderType() const { return (OrderDepotTypeFlags)GB(this->flags, 0, 3); }
|
||||||
/** What are we going to do when in the depot. */
|
/** What are we going to do when in the depot. */
|
||||||
inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)GB(this->flags, 4, 3); }
|
inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)GB(this->flags, 4, 3); }
|
||||||
|
/** What waypoint flags? */
|
||||||
|
inline OrderWaypointFlags GetWaypointFlags() const { return (OrderWaypointFlags)GB(this->flags, 0, 8); }
|
||||||
/** What variable do we have to compare? */
|
/** What variable do we have to compare? */
|
||||||
inline OrderConditionVariable GetConditionVariable() const { return (OrderConditionVariable)GB(this->dest, 11, 5); }
|
inline OrderConditionVariable GetConditionVariable() const { return (OrderConditionVariable)GB(this->dest, 11, 5); }
|
||||||
/** What is the comparator to use? */
|
/** What is the comparator to use? */
|
||||||
@@ -158,6 +160,8 @@ public:
|
|||||||
inline void SetDepotOrderType(OrderDepotTypeFlags depot_order_type) { SB(this->flags, 0, 3, depot_order_type); }
|
inline void SetDepotOrderType(OrderDepotTypeFlags depot_order_type) { SB(this->flags, 0, 3, depot_order_type); }
|
||||||
/** Set what we are going to do in the depot. */
|
/** Set what we are going to do in the depot. */
|
||||||
inline void SetDepotActionType(OrderDepotActionFlags depot_service_type) { SB(this->flags, 4, 3, depot_service_type); }
|
inline void SetDepotActionType(OrderDepotActionFlags depot_service_type) { SB(this->flags, 4, 3, depot_service_type); }
|
||||||
|
/** Set waypoint flags. */
|
||||||
|
inline void SetWaypointFlags(OrderWaypointFlags waypoint_flags) { SB(this->flags, 0, 8, waypoint_flags); }
|
||||||
/** Set variable we have to compare. */
|
/** Set variable we have to compare. */
|
||||||
inline void SetConditionVariable(OrderConditionVariable condition_variable) { SB(this->dest, 11, 5, condition_variable); }
|
inline void SetConditionVariable(OrderConditionVariable condition_variable) { SB(this->dest, 11, 5, condition_variable); }
|
||||||
/** Set the comparator to use. */
|
/** Set the comparator to use. */
|
||||||
|
@@ -112,6 +112,14 @@ enum OrderDepotActionFlags {
|
|||||||
};
|
};
|
||||||
DECLARE_ENUM_AS_BIT_SET(OrderDepotActionFlags)
|
DECLARE_ENUM_AS_BIT_SET(OrderDepotActionFlags)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Flags for go to waypoint orders
|
||||||
|
*/
|
||||||
|
enum OrderWaypointFlags {
|
||||||
|
OWF_DEFAULT = 0, ///< Default waypoint behaviour
|
||||||
|
};
|
||||||
|
DECLARE_ENUM_AS_BIT_SET(OrderWaypointFlags)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Variables (of a vehicle) to 'cause' skipping on.
|
* Variables (of a vehicle) to 'cause' skipping on.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user