Package zombie.characters.action
Class ActionContext
java.lang.Object
zombie.characters.action.ActionContext
public final class ActionContext
extends java.lang.Object
- 
Field SummaryFields Modifier and Type Field Description java.util.ArrayListonStateChanged
- 
Constructor SummaryConstructors Constructor Description ActionContext(IAnimatable iAnimatable)
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
onStateChangedpublic final java.util.ArrayList onStateChanged
 
- 
- 
Constructor Details- 
ActionContext
 
- 
- 
Method Details- 
getOwner
- 
updatepublic void update()
- 
currentStateSupportsChildState
- 
setPlaybackStateSnapshot
- 
getPlaybackStateSnapshot
- 
setCurrentState
- 
tryAddChildState
- 
removeChildStateAtprotected void removeChildStateAt(int int1)
- 
logCurrentStatepublic void logCurrentState()
- 
getCurrentState
- 
setGroup
- 
getGroup
- 
reportEventpublic void reportEvent(java.lang.String string)
- 
reportEventpublic void reportEvent(int int1, java.lang.String string)
- 
hasChildStatespublic final boolean hasChildStates()
- 
childStateCountpublic final int childStateCount()
- 
foreachChildStatepublic final void foreachChildState(java.util.function.Consumer consumer)
- 
indexOfChildStatepublic final int indexOfChildState(java.util.function.Predicate predicate)
- 
getChildStateAt
- 
getChildStatespublic java.util.List getChildStates()
- 
getCurrentStateNamepublic java.lang.String getCurrentStateName()
- 
getPreviousStateNamepublic java.lang.String getPreviousStateName()
- 
hasEventOccurredpublic boolean hasEventOccurred(java.lang.String string)
- 
hasEventOccurredpublic boolean hasEventOccurred(java.lang.String string, int int1)
- 
clearEventpublic void clearEvent(java.lang.String string)
 
-