The skill state machine as specified by SkillStateMachineType in the MachineSet nodeset.
Finite and continuous skills share one state machine type. Continuous skills never complete, so they use it without
the transitions from or to SkillState.COMPLETING and SkillState.COMPLETED. Skills that cannot be suspended have no
Suspend method, so they use it without the transitions from or to SkillState.SUSPENDING and SkillState.SUSPENDED.
A transition without a cause is an internal transition: the server takes it on its own and no skill command triggers it. A transition with a cause may still be taken by the server on its own, e.g. halting on a failure.
| Class | |
A command a client sends to a skill, by calling the method of the same name on the skill's state machine. |
| Class | |
A transition of the skill state machine. |
| Function | allowed |
Return the commands a skill in state accepts. |
| Function | state |
Return the state whose NodeId in SkillStateMachineType is node_id, e.g. read from CurrentState/Id. |
| Function | state |
Return the NodeId of state in SkillStateMachineType, as in CurrentState/Id. |
| Function | states |
Return the states a skill can be in, in SkillState order, see transitions(). |
| Function | transitions |
Return all transitions of a skill. |
| Constant | _COMPLETION |
Undocumented |
| Constant | _METHOD |
Undocumented |
| Constant | _STATE |
Undocumented |
| Constant | _STATES |
Undocumented |
| Constant | _STATES |
Undocumented |
| Constant | _SUSPENSION |
Undocumented |
| Constant | _TYPE |
Undocumented |
SkillState, *, finite: bool, suspendable: bool) -> frozenset[ SkillCommand]:
¶
Return the commands a skill in state accepts.
| Parameters | |
state:SkillState | Undocumented |
finite:bool | whether the skill is finite or continuous. |
suspendable:bool | whether the skill can be suspended. |
| Returns | |
frozenset[ | Undocumented |
Return the state whose NodeId in SkillStateMachineType is node_id, e.g. read from CurrentState/Id.
| Raises | |
KeyError | If node_id is not a state of SkillStateMachineType. |
Return all transitions of a skill.
| Parameters | |
finite:bool | whether the skill is finite or continuous. |
suspendable:bool | whether the skill can be suspended. |
| Returns | |
tuple[ | Undocumented |
Undocumented
| Value |
|