Class ActionStateContainer

java.lang.Object
zombie.characters.action.ActionStateContainer

public final class ActionStateContainer extends Object
  • Constructor Details

    • ActionStateContainer

      public ActionStateContainer()
  • Method Details

    • evaluateCurrentState

      public void evaluateCurrentState(ActionContext actionContext)
    • peekNextState

      public ActionState peekNextState(ActionContext actionContext)
    • canTransitionToState

      public boolean canTransitionToState(ActionGroup actionGroup, String stateName)
    • canTransitionToState

      public boolean canTransitionToState(ActionGroup actionGroup, String stateName, boolean allowSubState)
    • hasChildState

      public boolean hasChildState(ActionState child)
    • setPlaybackStateSnapshot

      public void setPlaybackStateSnapshot(ActionContext actionContext, ActionStateSnapshot snapshot)
    • getPlaybackStateSnapshot

      public ActionStateSnapshot getPlaybackStateSnapshot()
    • setCurrentState

      public boolean setCurrentState(ActionState nextState)
    • removeChildStateAt

      public void removeChildStateAt(int subStateIdx)
    • getRootState

      public ActionState getRootState()
    • hasChildStates

      public boolean hasChildStates()
    • childStateCount

      public int childStateCount()
    • foreachChildState

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

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

      public ActionState getChildStateAt(int idx)
    • getChildStates

      public List<ActionState> getChildStates()
    • getCurrentStateName

      public String getCurrentStateName()
    • getVariable

      public IAnimationVariableSlot getVariable(AnimationVariableHandle handle)
    • hasStateVariables

      public boolean hasStateVariables()
    • set

      public void set(ActionStateContainer actionStateContainer)
    • clear

      public void clear()
    • equalTo

      public boolean equalTo(ActionStateContainer rhs)
    • subStatesEqual

      public boolean subStatesEqual(ActionStateContainer rhs)