Public Member Functions | List of all members
ToonEyes Class Reference
Inheritance diagram for ToonEyes:
FSM DirectObject

Public Member Functions

def __init__ (self)
def defaultFilter (self, request, args)
def enterClosed (self)
def enterOff (self)
def enterOpen (self)
def enterSurprised (self)
def filterClosed (self, request, args)
def filterOpen (self, request, args)
- Public Member Functions inherited from FSM
def __init__ (self, name)
def __repr__ (self)
def __str__ (self)
def cleanup (self)
def defaultEnter (self, *args)
def defaultExit (self)
def demand (self, request, *args)
def filterOff (self, request, args)
def forceTransition (self, request, *args)
def getCurrentFilter (self)
def getCurrentOrNextState (self)
def getCurrentStateOrTransition (self)
def getStateChangeEvent (self)
def isInTransition (self)
def request (self, request, *args)
def requestNext (self, *args)
def requestPrev (self, *args)
def setBroadcastStateChanges (self, doBroadcast)
def setStateArray (self, stateArray)
- Public Member Functions inherited from DirectObject
def accept (self, event, method, extraArgs=[])
def acceptOnce (self, event, method, extraArgs=[])
def addTask (self, *args, **kwargs)
def detectLeaks (self)
def doMethodLater (self, *args, **kwargs)
def getAllAccepting (self)
def ignore (self, event)
def ignoreAll (self)
def isAccepting (self, event)
def isIgnoring (self, event)
def removeAllTasks (self)
def removeTask (self, taskOrName)

Additional Inherited Members

- Public Attributes inherited from FSM
- Static Public Attributes inherited from FSM
 defaultTransitions = None
 notify = DirectNotifyGlobal.directNotify.newCategory("FSM")
int SerialNum = 0
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
def add_task = addTask
def detect_leaks = detectLeaks
def do_method_later = doMethodLater
def get_all_accepting = getAllAccepting
def ignore_all = ignoreAll
def is_accepting = isAccepting
def is_ignoring = isIgnoring
def remove_all_tasks = removeAllTasks
def remove_task = removeTask

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Reimplemented from DirectObject.

Member Function Documentation

◆ defaultFilter()

def defaultFilter (   self,
This is the function that is called if there is no
filterState() method for a particular state name.

This default filter function behaves in one of two modes:

(1) if self.defaultTransitions is None, allow any request
whose name begins with a capital letter, which is assumed to
be a direct request to a particular state.  This is similar to
the old ClassicFSM onUndefTransition=ALLOW, with no explicit
state transitions listed.

(2) if self.defaultTransitions is not None, allow only those
requests explicitly identified in this map.  This is similar
to the old ClassicFSM onUndefTransition=DISALLOW, with an
explicit list of allowed state transitions.

Specialized FSM's may wish to redefine this default filter
(for instance, to always return the request itself, thus
allowing any transition.).

Reimplemented from FSM.

◆ enterClosed()

def enterClosed (   self)

◆ enterOff()

def enterOff (   self)

◆ enterOpen()

def enterOpen (   self)

◆ enterSurprised()

def enterSurprised (   self)

◆ filterClosed()

def filterClosed (   self,

◆ filterOpen()

def filterOpen (   self,