direct.fsm.ClassicFSM¶
from direct.fsm.ClassicFSM import ClassicFSM, printDebugFsmList
Finite State Machine module: contains the ClassicFSM class.
Note
This module and class exist only for backward compatibility with
existing code. New code should use the FSM module instead.
Inheritance diagram
digraph inheritance4b4af322ce { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ClassicFSM" [URL="direct.fsm.ClassicFSM.html#direct.fsm.ClassicFSM.ClassicFSM",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Finite State Machine class."]; "DirectObject" -> "ClassicFSM" [arrowsize=0.75,style=""]; "DirectObject" [URL="direct.showbase.DirectObject.html#direct.showbase.DirectObject.DirectObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This is the class that all Direct/SAL classes should inherit from"]; }- class ClassicFSM(name, states=[], initialStateName=None, finalStateName=None, onUndefTransition=2)[source]¶
Bases:
DirectObjectFinite State Machine class.
This module and class exist only for backward compatibility with existing code. New code should use the FSM class instead.
- ALLOW = 0¶
- DISALLOW = 1¶
- DISALLOW_VERBOSE = 2¶
- ERROR = 3¶
- notify = <direct.directnotify.Notifier.Notifier object>¶