All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codingame.gameengine.module.entities.Curve Maven / Gradle / Ivy

package com.codingame.gameengine.module.entities;

/**
 * The function that will be used to animate the transition of given properties between two states of an Entity.
 */
public enum Curve {
    /**
     * The default simple linear interpolation.
     */
    LINEAR,

    /**
     * Don't animate the transition, wait for this commit's frame time for the new value to be used in the display.
     */
    NONE,

    /**
     * Don't animate the transition, immediately use the new value to be used in the display.
     */
    IMMEDIATE,

    /**
     * Start changing slowly and finish fast.
     */
    EASE_IN,

    /**
     * Start changing fast and finish slowly.
     */
    EASE_OUT,

    /**
     * Start changing slowly, accelerate, then slowly again.
     */
    EASE_IN_AND_OUT,

    /**
     * The value quickly increases and wobbles around the final value before settling.
     */
    ELASTIC;

    static final Curve DEFAULT = Curve.LINEAR;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy