Class FloatAction

All Implemented Interfaces:
Pool.Poolable

public class FloatAction extends TemporalAction
An action that has a float, whose value is transitioned over time.
Author:
Nathan Sweet
  • Constructor Details

    • FloatAction

      public FloatAction()
      Creates a FloatAction that transitions from 0 to 1.
    • FloatAction

      public FloatAction(float start, float end)
      Creates a FloatAction that transitions from start to end.
    • FloatAction

      public FloatAction(float start, float end, float duration)
      Creates a FloatAction that transitions from start to end.
    • FloatAction

      public FloatAction(float start, float end, float duration, @Null Interpolation interpolation)
      Creates a FloatAction that transitions from start to end.
  • Method Details

    • getValue

      public float getValue()
      Gets the current float value.
    • setValue

      public void setValue(float value)
      Sets the current float value.
    • getStart

      public float getStart()
    • setStart

      public void setStart(float start)
      Sets the value to transition from.
    • getEnd

      public float getEnd()
    • setEnd

      public void setEnd(float end)
      Sets the value to transition to.