diff options
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index df65843..c748e98 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -684,7 +684,7 @@ class EntityControlable : public EntityDynamic public: /// control flags - enum ControlFlags {ControlFlagNone = 0, ControlFlagFire = 1}; + enum ControlFlags {ControlFlagNone = 0, ControlFlagFire = 1, ControlFlagAutoPilot = 2, ControlFlagAutoDock = 4, ControlFlagAutoLevel = 8 }; /// bullet action interface class class ActionInterface: public btActionInterface { @@ -787,7 +787,13 @@ public: /// set target controlflags void set_target_controlflags(int controlflags); - + + /// set target control flags + void set_target_controlflag(const ControlFlag controlflag); + + /// unset target control flag + void unset_target_controlflag(const ControlFlag controlflag); + /** * @brief set the zone the entity is currently in * this fuction removes the entity from its previous zone |