]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/StateMachine.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / StateMachine.hxx
index 7e9f4be5d0809d9298f6fad39e0e5cbc9c9cd8fb..a382760f999880030bfb794ebb45fcaab5775990 100644 (file)
@@ -74,6 +74,14 @@ public:
         
         std::string name() const;
         
+        /**
+         * Set if the target state should automatically be excluded
+         * from the source state. Defaults to true, can be cleared
+         * to allow a state to re-enter itself
+         */
+        void setExcludeTarget(bool aExclude);
+        
+        
         /**
          * The state we end in, after this transition fires
          */
@@ -116,6 +124,8 @@ public:
     typedef SGSharedPtr<State> State_ptr;
     typedef SGSharedPtr<Transition> Transition_ptr;
     
+    void initFromPlist(SGPropertyNode* desc, SGPropertyNode* root);
+    
     /**
      * create a state machine from a property list description
      */