Class ActionStateContainer
java.lang.Object
zombie.characters.action.ActionStateContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransitionToState(ActionGroup actionGroup, String stateName) booleancanTransitionToState(ActionGroup actionGroup, String stateName, boolean allowSubState) intvoidclear()booleanvoidevaluateCurrentState(ActionContext actionContext) voidforeachChildState(Consumer<ActionState> consumer) getChildStateAt(int idx) getVariable(AnimationVariableHandle handle) booleanhasChildState(ActionState child) booleanbooleanintindexOfChildState(Predicate<ActionState> predicate) peekNextState(ActionContext actionContext) voidremoveChildStateAt(int subStateIdx) voidset(ActionStateContainer actionStateContainer) booleansetCurrentState(ActionState nextState) voidsetPlaybackStateSnapshot(ActionContext actionContext, ActionStateSnapshot snapshot) boolean
-
Constructor Details
-
ActionStateContainer
public ActionStateContainer()
-
-
Method Details
-
evaluateCurrentState
-
peekNextState
-
canTransitionToState
-
canTransitionToState
public boolean canTransitionToState(ActionGroup actionGroup, String stateName, boolean allowSubState) -
hasChildState
-
setPlaybackStateSnapshot
-
getPlaybackStateSnapshot
-
setCurrentState
-
removeChildStateAt
public void removeChildStateAt(int subStateIdx) -
getRootState
-
hasChildStates
public boolean hasChildStates() -
childStateCount
public int childStateCount() -
foreachChildState
-
indexOfChildState
-
getChildStateAt
-
getChildStates
-
getCurrentStateName
-
getVariable
-
hasStateVariables
public boolean hasStateVariables() -
set
-
clear
public void clear() -
equalTo
-
subStatesEqual
-