Package com.simsilica.lemur.anim
Interface Animation
- All Known Implementing Classes:
TweenAnimation
public interface Animation
An individual animation task, called each frame
by the AnimationState to update the animation. Animations
can be any repetitive task that requires per-frame polling.
The most common use-case is the TweenAnimation that will
animate a Tween object.
-
Method Summary
-
Method Details
-
animate
boolean animate(double tpf) Pushes the animation forward one tpf's worth of time. Returns true if there is still more to animate, false if the animation should no longer by updated. -
cancel
void cancel()Called when the animation is removed from the AnimationState before it has completed.
-