Class GUI.AnimationState<T extends GUIObject>

java.lang.Object
com.blackrook.gui.GUI.AnimationState<T>
Type Parameters:
T - the GUI object type.
Enclosing class:
GUI

public abstract static class GUI.AnimationState<T extends GUIObject> extends Object
Animation state.
Author:
Matthew Tropiano
  • Field Details

  • Constructor Details

    • AnimationState

      protected AnimationState(GUIObject object)
  • Method Details

    • update

      public abstract void update(double progressScalar, boolean start, boolean end)
      Updates the object on this state using the progress factor provided. This factor is already calculated from easing.
      Parameters:
      progressScalar - progress scalar (0 to 1).
      start - if this is the first call.
      end - if this is the last call.