Przeglądaj źródła

added function isInTransition() so we don't have to query myFsm.state

Josh Wilson 19 lat temu
rodzic
commit
fbeb4d6c3f
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      direct/src/fsm/FSM.py

+ 3 - 0
direct/src/fsm/FSM.py

@@ -187,6 +187,9 @@ class FSM(DirectObject):
             return self.state
         return self.newState
 
+    def isInTransition(self):
+        return self.state == None
+    
     def forceTransition(self, request, *args):
         """Changes unconditionally to the indicated state.  This
         bypasses the filterState() function, and just calls