public interface IAnimation
Modifier and Type | Interface and Description |
---|---|
static class |
IAnimation.AnimationType |
Modifier and Type | Method and Description |
---|---|
void |
callAnimationFinish() |
void |
cancelAnimation() |
IAnimation.AnimationType |
getType() |
void |
setAnimationFinish(IAnimationFinish callback)
Set the animation finish callback.
|
boolean |
tick(float delta,
AbstractAnimationScreen screen,
com.badlogic.gdx.graphics.g2d.Batch batch)
Draw animation on screen.
|
boolean tick(float delta, AbstractAnimationScreen screen, com.badlogic.gdx.graphics.g2d.Batch batch)
delta
- Time change since last call.screen
- The screen to draw on.batch
- The Batch for drawing stuff.true
if the animation has completed.void setAnimationFinish(IAnimationFinish callback)
callback
- The callback function.void callAnimationFinish()
void cancelAnimation()
IAnimation.AnimationType getType()