Package gaiasky.util.gdx.model
Class IntAnimationController.AnimationDesc
java.lang.Object
gaiasky.util.gdx.model.IntAnimationController.AnimationDesc
- Enclosing class:
- IntAnimationController
Class describing how to play and
Animation
. You can read the values within this class to get the progress of the
animation. Do not change the values. Only valid when the animation is currently played.-
Field Summary
Modifier and TypeFieldDescriptionThe animation to be applied.float
The duration of the animationListener which will be informed when the animation is looped or ended.int
The number of remaining loops, negative for continuous, zero if stopped.float
The offset within the animation (animation time = offsetTime + time)float
The speed at which to play the animation (can be negative), 1.0 for normal speed.float
The current animation time. -
Constructor Summary
-
Method Summary
-
Field Details
-
listener
Listener which will be informed when the animation is looped or ended. -
animation
The animation to be applied. -
speed
public float speedThe speed at which to play the animation (can be negative), 1.0 for normal speed. -
time
public float timeThe current animation time. -
offset
public float offsetThe offset within the animation (animation time = offsetTime + time) -
duration
public float durationThe duration of the animation -
loopCount
public int loopCountThe number of remaining loops, negative for continuous, zero if stopped.
-
-
Constructor Details
-
AnimationDesc
protected AnimationDesc()
-
-
Method Details
-
update
protected float update(float delta) - Parameters:
delta
- delta time, must be positive.- Returns:
- the remaining time or -1 if still animating.
-