Skip to main content

FlixelTweenType

View source

enum

org.flixelgdx.tween.settings.FlixelTweenType

public final enum FlixelTweenType

Enum containing all different tween types that can determine the behavior of a tween.

Fields

ONESHOT

public static final FlixelTweenType ONESHOT

Stops and removes itself from the manager when it finishes.


PERSIST

public static final FlixelTweenType PERSIST

Stops when finished but remains in the manager. Can be reused multiple times.


BACKWARD

public static final FlixelTweenType BACKWARD

Like FlixelTweenType.PERSIST but plays once in reverse; does not remove on finish.


LOOPING

public static final FlixelTweenType LOOPING

Restarts immediately when it finishes. onComplete is called every cycle.


PINGPONG

public static final FlixelTweenType PINGPONG

Like FlixelTweenType.LOOPING but every second run is in reverse. onComplete is called every cycle.


Methods

values()

public static FlixelTweenType[] values()

valueOf(String)

public static FlixelTweenType valueOf(String name)

isLooping()

public boolean isLooping()

True for LOOPING and PINGPONG (tween restarts and may flip direction).


getLooping()

public boolean getLooping()

Returns true for LOOPING and PINGPONG tween types.


isBackward()

public boolean isBackward()

True if this type plays in reverse (initial direction for FlixelTweenType.BACKWARD). Toggled each cycle for FlixelTweenType.PINGPONG.


getBackward()

public boolean getBackward()

Returns true if this tween type plays in reverse.


removeOnFinish()

public boolean removeOnFinish()

True only for FlixelTweenType.ONESHOT: tween is removed from the manager when it finishes.