Panda3D
|
Public Member Functions | |
__init__ (self, name, enterFunc=None, exitFunc=None, transitions=Any, inspectorPos=[]) | |
__str__ (self) | |
addChild (self, ClassicFSM) | |
addTransition (self, transition) | |
enter (self, argList=[]) | |
exit (self, argList=[]) | |
getChildren (self) | |
getEnterFunc (self) | |
getExitFunc (self) | |
getInspectorPos (self) | |
getName (self) | |
getTransitions (self) | |
hasChildren (self) | |
isTransitionDefined (self, otherState) | |
removeChild (self, ClassicFSM) | |
replaceMethod (self, oldFunction, newFunction) | |
setChildren (self, FSMList) | |
setEnterFunc (self, stateEnterFunc) | |
setExitFunc (self, stateExitFunc) | |
setInspectorPos (self, inspectorPos) | |
setName (self, stateName) | |
setTransitions (self, stateTransitions) | |
transitionsToAny (self) | |
![]() | |
accept (self, event, method, extraArgs=[]) | |
acceptOnce (self, event, method, extraArgs=[]) | |
addTask (self, *args, **kwargs) | |
detectLeaks (self) | |
doMethodLater (self, *args, **kwargs) | |
getAllAccepting (self) | |
ignore (self, event) | |
ignoreAll (self) | |
isAccepting (self, event) | |
isIgnoring (self, event) | |
removeAllTasks (self) | |
removeTask (self, taskOrName) | |
Static Public Attributes | |
str | Any = 'ANY' |
notify = directNotify.newCategory("State") | |
States = weakref.WeakKeyDictionary() | |
![]() | |
accept_once = acceptOnce | |
add_task = addTask | |
detect_leaks = detectLeaks | |
do_method_later = doMethodLater | |
get_all_accepting = getAllAccepting | |
ignore_all = ignoreAll | |
is_accepting = isAccepting | |
is_ignoring = isIgnoring | |
remove_all_tasks = removeAllTasks | |
remove_task = removeTask | |
Additional Inherited Members | |
![]() | |
_addTask (self, task) | |
_clearTask (self, task) | |
![]() | |
_taskList | |
__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).
Reimplemented from DirectObject.
__str__ | ( | self | ) |
addChild | ( | self, | |
ClassicFSM ) |
Add the given ClassicFSM to list of child FSMs
addTransition | ( | self, | |
transition ) |
addTransitions(self, string)
enter | ( | self, | |
argList = [] ) |
Call the enter function for this state
exit | ( | self, | |
argList = [] ) |
Call the exit function for this state
getChildren | ( | self | ) |
Return the list of child FSMs
getEnterFunc | ( | self | ) |
getExitFunc | ( | self | ) |
getInspectorPos | ( | self | ) |
getInspectorPos(self)
getName | ( | self | ) |
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()
hasChildren | ( | self | ) |
Return true if state has child FSMs
isTransitionDefined | ( | self, | |
otherState ) |
removeChild | ( | self, | |
ClassicFSM ) |
Remove the given ClassicFSM from list of child FSMs
replaceMethod | ( | self, | |
oldFunction, | |||
newFunction ) |
setChildren | ( | self, | |
FSMList ) |
setChildren(self, ClassicFSM[]) Set the children to given list of FSMs
setEnterFunc | ( | self, | |
stateEnterFunc ) |
setExitFunc | ( | self, | |
stateExitFunc ) |
setInspectorPos | ( | self, | |
inspectorPos ) |
setInspectorPos(self, [x, y])
setName | ( | self, | |
stateName ) |
setTransitions | ( | self, | |
stateTransitions ) |
setTransitions(self, string[])
transitionsToAny | ( | self | ) |
returns true if State defines transitions to any other state
|
static |
|
static |
|
static |