Class Glider.Changer

java.lang.Object
com.github.yellowstonegames.smooth.Glider.Changer
Enclosing class:
Glider

public static class Glider.Changer extends Object
A named variable that can change either (or both) a float and/or an int value between start and end values. Typical usage only will have reasonable results when using one type, either float or int, and will have the start and end values for that type used with the appropriate interpolator by Glider.getFloat(String) or Glider.getInt(String). The name is important; you look up the current value for a Changer by its name.
  • Field Details

    • name

      public final String name
    • startF

      public float startF
    • endF

      public float endF
    • startI

      public int startI
    • endI

      public int endI
    • interpolatorF

      public FloatSmoother interpolatorF
    • interpolatorI

      public IntSmoother interpolatorI
  • Constructor Details

    • Changer

      public Changer(String name, float initialF)
    • Changer

      public Changer(String name, float startF, float endF)
    • Changer

      public Changer(String name, float startF, float endF, FloatSmoother interpolatorF)
    • Changer

      public Changer(String name, int startI, int endI, IntSmoother interpolatorI)
  • Method Details