Class ActionContext
java.lang.Object
zombie.characters.action.ActionContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransitionToState(String in_stateName) booleancanTransitionToState(String in_stateName, boolean in_allowSubState) final intvoidvoidclearEvent(String eventName) final voidforeachChildState(Consumer<ActionState> consumer) final ActionStategetChildStateAt(int idx) voidgetGroup()getOwner()getVariable(AnimationVariableHandle in_handle) final booleanbooleanhasEventOccurred(String eventName) Returns TRUE if an event has occurred on any layer.booleanhasEventOccurred(String eventName, String stateName) booleanfinal intindexOfChildState(Predicate<ActionState> predicate) voidvoidremoveChildStateAt(int subStateIdx) voidreportEvent(String event) voidreportEvent(String state, String event) booleansetCurrentState(ActionState nextState) voidsetGroup(ActionGroup group) voidsetPlaybackStateSnapshot(ActionStateSnapshot snapshot) booleantryInsertChildState(ActionState in_nextState) voidupdate()
-
Field Details
-
onStateChanged
-
-
Constructor Details
-
ActionContext
-
-
Method Details
-
getOwner
-
update
public void update() -
peekNextState
-
canTransitionToState
-
canTransitionToState
-
setPlaybackStateSnapshot
-
getPlaybackStateSnapshot
-
setCurrentState
-
tryInsertChildState
-
removeChildStateAt
public void removeChildStateAt(int subStateIdx) -
logCurrentState
public void logCurrentState() -
clearActionContextEvents
public void clearActionContextEvents() -
getCurrentState
-
setGroup
-
getGroup
-
reportEvent
-
reportEvent
-
hasChildStates
public final boolean hasChildStates() -
childStateCount
public final int childStateCount() -
foreachChildState
-
indexOfChildState
-
getChildStateAt
-
getChildStates
-
getCurrentStateName
-
getPreviousStateName
-
hasEventOccurred
Returns TRUE if an event has occurred on any layer. -
hasEventOccurred
-
clearEvent
-
getEvents
-
getVariable
-
hasStateVariables
public boolean hasStateVariables()
-