Enum Class Curve

java.lang.Object
java.lang.Enum<Curve>
com.codingame.gameengine.module.entities.Curve
All Implemented Interfaces:
Serializable, Comparable<Curve>, Constable

public enum Curve extends Enum<Curve>
The function that will be used to animate the transition of given properties between two states of an Entity.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Start changing slowly and finish fast.
    Start changing slowly, accelerate, then slowly again.
    Start changing fast and finish slowly.
    The value quickly increases and wobbles around the final value before settling.
    Don't animate the transition, immediately use the new value to be used in the display.
    The default simple linear interpolation.
    Don't animate the transition, wait for this commit's frame time for the new value to be used in the display.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Curve
    Returns the enum constant of this class with the specified name.
    static Curve[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LINEAR

      public static final Curve LINEAR
      The default simple linear interpolation.
    • NONE

      public static final Curve NONE
      Don't animate the transition, wait for this commit's frame time for the new value to be used in the display.
    • IMMEDIATE

      public static final Curve IMMEDIATE
      Don't animate the transition, immediately use the new value to be used in the display.
    • EASE_IN

      public static final Curve EASE_IN
      Start changing slowly and finish fast.
    • EASE_OUT

      public static final Curve EASE_OUT
      Start changing fast and finish slowly.
    • EASE_IN_AND_OUT

      public static final Curve EASE_IN_AND_OUT
      Start changing slowly, accelerate, then slowly again.
    • ELASTIC

      public static final Curve ELASTIC
      The value quickly increases and wobbles around the final value before settling.
  • Method Details

    • values

      public static Curve[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Curve valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null