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.ArrayList
onStateChanged
-
Constructor Summary
Constructors Constructor Description ActionContext(IAnimatable iAnimatable)
-
Method Summary
Modifier and Type Method Description int
childStateCount()
void
clearEvent(java.lang.String string)
protected boolean
currentStateSupportsChildState(ActionState actionState)
void
foreachChildState(java.util.function.Consumer consumer)
ActionState
getChildStateAt(int int1)
java.util.List
getChildStates()
ActionState
getCurrentState()
java.lang.String
getCurrentStateName()
ActionGroup
getGroup()
IAnimatable
getOwner()
ActionStateSnapshot
getPlaybackStateSnapshot()
java.lang.String
getPreviousStateName()
boolean
hasChildStates()
boolean
hasEventOccurred(java.lang.String string)
boolean
hasEventOccurred(java.lang.String string, int int1)
int
indexOfChildState(java.util.function.Predicate predicate)
void
logCurrentState()
protected void
removeChildStateAt(int int1)
void
reportEvent(int int1, java.lang.String string)
void
reportEvent(java.lang.String string)
protected boolean
setCurrentState(ActionState actionState)
void
setGroup(ActionGroup actionGroup)
void
setPlaybackStateSnapshot(ActionStateSnapshot actionStateSnapshot)
protected boolean
tryAddChildState(ActionState actionState)
void
update()
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)
-