public abstract class Animation
extends java.lang.Object
Constructor and Description |
---|
Animation() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
animate(double delta)
This method used to update animated object.
|
protected void |
destroy()
Called one time when animation ended.
|
protected void |
initialize()
Called one time before animate loop.
|
void |
startAnimation()
Adds animation to animator.
|
public void startAnimation()
protected void initialize()
protected abstract boolean animate(double delta)
Returns true if animation is finished and could be removed from animator.
delta
- delta time (from previous call).protected void destroy()