Package zombie.characters.action
Class ActionContext
java.lang.Object
zombie.characters.action.ActionContext
public final class ActionContext
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayListonStateChanged -
Constructor Summary
Constructors Constructor Description ActionContext(IAnimatable iAnimatable) -
Method Summary
Modifier and Type Method Description intchildStateCount()voidclearEvent(java.lang.String string)protected booleancurrentStateSupportsChildState(ActionState actionState)voidforeachChildState(java.util.function.Consumer consumer)ActionStategetChildStateAt(int int1)java.util.ListgetChildStates()ActionStategetCurrentState()java.lang.StringgetCurrentStateName()ActionGroupgetGroup()IAnimatablegetOwner()ActionStateSnapshotgetPlaybackStateSnapshot()java.lang.StringgetPreviousStateName()booleanhasChildStates()booleanhasEventOccurred(java.lang.String string)booleanhasEventOccurred(java.lang.String string, int int1)intindexOfChildState(java.util.function.Predicate predicate)voidlogCurrentState()protected voidremoveChildStateAt(int int1)voidreportEvent(int int1, java.lang.String string)voidreportEvent(java.lang.String string)protected booleansetCurrentState(ActionState actionState)voidsetGroup(ActionGroup actionGroup)voidsetPlaybackStateSnapshot(ActionStateSnapshot actionStateSnapshot)protected booleantryAddChildState(ActionState actionState)voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
onStateChanged
public final java.util.ArrayList onStateChanged
-
-
Constructor Details
-
ActionContext
-
-
Method Details
-
getOwner
-
update
public void update() -
currentStateSupportsChildState
-
setPlaybackStateSnapshot
-
getPlaybackStateSnapshot
-
setCurrentState
-
tryAddChildState
-
removeChildStateAt
protected void removeChildStateAt(int int1) -
logCurrentState
public void logCurrentState() -
getCurrentState
-
setGroup
-
getGroup
-
reportEvent
public void reportEvent(java.lang.String string) -
reportEvent
public void reportEvent(int int1, java.lang.String string) -
hasChildStates
public final boolean hasChildStates() -
childStateCount
public final int childStateCount() -
foreachChildState
public final void foreachChildState(java.util.function.Consumer consumer) -
indexOfChildState
public final int indexOfChildState(java.util.function.Predicate predicate) -
getChildStateAt
-
getChildStates
public java.util.List getChildStates() -
getCurrentStateName
public java.lang.String getCurrentStateName() -
getPreviousStateName
public java.lang.String getPreviousStateName() -
hasEventOccurred
public boolean hasEventOccurred(java.lang.String string) -
hasEventOccurred
public boolean hasEventOccurred(java.lang.String string, int int1) -
clearEvent
public void clearEvent(java.lang.String string)
-