direct.fsm.State¶
from direct.fsm.State import State
State module: contains State class
Inheritance diagram
-
class
State
(name, enterFunc=None, exitFunc=None, transitions='ANY', inspectorPos=[])[source]¶ Bases:
direct.showbase.DirectObject.DirectObject
-
Any
= 'ANY'¶
-
States
= <WeakKeyDictionary>¶
-
__init__
(self, string, func, func, string[], inspectorPos = [])[source]¶ State constructor: takes name, enter func, exit func, and a list of states it can transition to (or State.Any).
-
getTransitions
(self)[source]¶ warning – if the state transitions to any other state, returns an empty list (falsely implying that the state has no transitions) see State.transitionsToAny()
-
notify
= <direct.directnotify.Notifier.Notifier object>¶
-
weakref
= <module 'weakref' from '/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/weakref.py'>¶
-