Class AnimatedIntProperty

java.lang.Object
dev.prozilla.pine.common.property.animated.AnimatedProperty<Integer>
dev.prozilla.pine.common.property.animated.AnimatedIntProperty
All Implemented Interfaces:
Updatable, AnimatedPropertyBase<Integer>, IntProperty, NonNullProperty<Integer>, Property<Integer>, Functor<Integer>
Direct Known Subclasses:
TransitionedIntProperty

public class AnimatedIntProperty extends AnimatedProperty<Integer> implements IntProperty
  • Field Details

    • start

      protected int start
    • end

      protected int end
  • Constructor Details

    • AnimatedIntProperty

      public AnimatedIntProperty(int start, int end, AnimationCurve curve)
  • Method Details

    • getRestarted

      public int getRestarted()
      Restarts the animation and returns the current value.
    • getUpdated

      public int getUpdated(float deltaTime)
      Updates the animation and returns the current value.
      Parameters:
      deltaTime - Delta time in seconds.
    • get

      public int get()
      Description copied from interface: IntProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface IntProperty
      Returns:
      The primitive value of this property.