Panda3D
|
Public Member Functions | |
def | __init__ (self, name, enterFunc=None, exitFunc=None, transitions=Any, inspectorPos=[]) |
def | __str__ (self) |
def | addChild (self, ClassicFSM) |
def | addTransition (self, transition) |
def | enter (self, argList=[]) |
def | exit (self, argList=[]) |
def | getChildren (self) |
def | getEnterFunc (self) |
def | getExitFunc (self) |
def | getInspectorPos (self) |
def | getName (self) |
def | getTransitions (self) |
def | hasChildren (self) |
def | isTransitionDefined (self, otherState) |
def | removeChild (self, ClassicFSM) |
def | replaceMethod (self, oldFunction, newFunction) |
def | setChildren (self, FSMList) |
def | setEnterFunc (self, stateEnterFunc) |
def | setExitFunc (self, stateExitFunc) |
def | setInspectorPos (self, inspectorPos) |
def | setName (self, stateName) |
def | setTransitions (self, stateTransitions) |
def | transitionsToAny (self) |
![]() | |
def | __init__ (self) |
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) |
Static Public Attributes | |
string | Any = 'ANY' |
notify = directNotify.newCategory("State") | |
States = weakref.WeakKeyDictionary() | |
def __init__ | ( | self, | |
name, | |||
enterFunc = None , |
|||
exitFunc = None , |
|||
transitions = Any , |
|||
inspectorPos = [] |
|||
) |
__init__(self, string, func, func, string[], inspectorPos = []) State constructor: takes name, enter func, exit func, and a list of states it can transition to (or State.Any).
def __str__ | ( | self | ) |
def addChild | ( | self, | |
ClassicFSM | |||
) |
Add the given ClassicFSM to list of child FSMs
def addTransition | ( | self, | |
transition | |||
) |
addTransitions(self, string)
def enter | ( | self, | |
argList = [] |
|||
) |
Call the enter function for this state
def exit | ( | self, | |
argList = [] |
|||
) |
Call the exit function for this state
def getChildren | ( | self | ) |
Return the list of child FSMs
def getEnterFunc | ( | self | ) |
def getExitFunc | ( | self | ) |
def getInspectorPos | ( | self | ) |
getInspectorPos(self)
def getName | ( | self | ) |
def getTransitions | ( | self | ) |
warning -- if the state transitions to any other state, returns an empty list (falsely implying that the state has no transitions) see State.transitionsToAny()
def hasChildren | ( | self | ) |
Return true if state has child FSMs
def isTransitionDefined | ( | self, | |
otherState | |||
) |
def removeChild | ( | self, | |
ClassicFSM | |||
) |
Remove the given ClassicFSM from list of child FSMs
def replaceMethod | ( | self, | |
oldFunction, | |||
newFunction | |||
) |
def setChildren | ( | self, | |
FSMList | |||
) |
setChildren(self, ClassicFSM[]) Set the children to given list of FSMs
def setEnterFunc | ( | self, | |
stateEnterFunc | |||
) |
def setExitFunc | ( | self, | |
stateExitFunc | |||
) |
def setInspectorPos | ( | self, | |
inspectorPos | |||
) |
setInspectorPos(self, [x, y])
def setName | ( | self, | |
stateName | |||
) |
def setTransitions | ( | self, | |
stateTransitions | |||
) |
setTransitions(self, string[])
def transitionsToAny | ( | self | ) |
returns true if State defines transitions to any other state
|
static |
|
static |
|
static |