Class ActionContext

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

public final class ActionContext extends Object
  • Field Details

  • Constructor Details

    • ActionContext

      public ActionContext(IAnimatable owner)
  • Method Details

    • getOwner

      public IAnimatable getOwner()
    • update

      public void update()
    • getNextState

      public ActionState getNextState()
    • setPlaybackStateSnapshot

      public void setPlaybackStateSnapshot(ActionStateSnapshot snapshot)
    • getPlaybackStateSnapshot

      public ActionStateSnapshot getPlaybackStateSnapshot()
    • logCurrentState

      public void logCurrentState()
    • getCurrentState

      public ActionState getCurrentState()
    • setGroup

      public void setGroup(ActionGroup group)
    • getGroup

      public ActionGroup getGroup()
    • reportEvent

      public void reportEvent(String event)
    • reportEvent

      public void reportEvent(int animLayer, String event)
    • hasChildStates

      public final boolean hasChildStates()
    • childStateCount

      public final int childStateCount()
    • foreachChildState

      public final void foreachChildState(Consumer<ActionState> consumer)
    • indexOfChildState

      public final int indexOfChildState(Predicate<ActionState> predicate)
    • getChildStateAt

      public final ActionState getChildStateAt(int idx)
    • getChildStates

      public List<ActionState> getChildStates()
    • getCurrentStateName

      public String getCurrentStateName()
    • getPreviousStateName

      public String getPreviousStateName()
    • hasEventOccurred

      public boolean hasEventOccurred(String eventName)
      Returns TRUE if an event has occurred on any layer.
    • hasEventOccurred

      public boolean hasEventOccurred(String eventName, int layerIdx)
      Returns TRUE if an event has occurred on the specified layer.
    • clearEvent

      public void clearEvent(String eventName)