Class ActionContext

java.lang.Object
zombie.characters.action.ActionContext

public final class ActionContext extends Object
  • Field Details

    • onStateChanged

      public final ArrayList onStateChanged
  • Constructor Details

    • ActionContext

      public ActionContext(IAnimatable iAnimatable)
  • Method Details

    • getOwner

      public IAnimatable getOwner()
    • update

      public void update()
    • getNextState

      public ActionState getNextState()
    • currentStateSupportsChildState

      protected boolean currentStateSupportsChildState(ActionState actionState)
    • setPlaybackStateSnapshot

      public void setPlaybackStateSnapshot(ActionStateSnapshot actionStateSnapshot)
    • getPlaybackStateSnapshot

      public ActionStateSnapshot getPlaybackStateSnapshot()
    • setCurrentState

      protected boolean setCurrentState(ActionState actionState)
    • tryAddChildState

      protected boolean tryAddChildState(ActionState actionState)
    • removeChildStateAt

      protected void removeChildStateAt(int int1)
    • logCurrentState

      public void logCurrentState()
    • getCurrentState

      public ActionState getCurrentState()
    • setGroup

      public void setGroup(ActionGroup actionGroup)
    • getGroup

      public ActionGroup getGroup()
    • reportEvent

      public void reportEvent(String string)
    • reportEvent

      public void reportEvent(int int1, String string)
    • hasChildStates

      public final boolean hasChildStates()
    • childStateCount

      public final int childStateCount()
    • foreachChildState

      public final void foreachChildState(Consumer consumer)
    • indexOfChildState

      public final int indexOfChildState(Predicate predicate)
    • getChildStateAt

      public final ActionState getChildStateAt(int int1)
    • getChildStates

      public List getChildStates()
    • getCurrentStateName

      public String getCurrentStateName()
    • getPreviousStateName

      public String getPreviousStateName()
    • hasEventOccurred

      public boolean hasEventOccurred(String string)
    • hasEventOccurred

      public boolean hasEventOccurred(String string, int int1)
    • clearEvent

      public void clearEvent(String string)