|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Animator
Anim routine, which can play an animation from anim container.
Method Summary | |
---|---|
AnimState |
getAnimState()
Get current animation state. |
int |
getFrame()
Get the current playing frame number. |
float |
getRealFrame()
Get the current playing frame with accurate precision. |
void |
play(Animation animation)
Play the animated sprite with a specific animation, previously created. |
void |
play(Animation animation,
float speed)
Play the animated sprite with a specific animation, previously created. |
void |
play(int start,
int end,
float speed,
boolean reverse,
boolean repeat)
Play the animated sprite with a specific animation data. |
void |
setFrame(int frame)
Set a fixed frame (it will overwrite the current animation). |
void |
setSkipLastFrameOnReverse(boolean skip)
Skip last frame when reverse playing is enable It will directly play the last-1 frame when reversing if set to true. |
void |
stopAnimation()
Stop current animation (animation state set to READY). |
void |
updateAnimation(float extrp)
Animation update routine. |
Method Detail |
---|
void play(Animation animation)
animation
- animation reference.void play(Animation animation, float speed)
animation
- animation reference.speed
- specified speed.void play(int start, int end, float speed, boolean reverse, boolean repeat)
start
- first frame to play.end
- last frame to reach.speed
- specified speed.reverse
- reverse play when end is reached.repeat
- play in loop.void setSkipLastFrameOnReverse(boolean skip)
void stopAnimation()
void updateAnimation(float extrp)
extrp
- extrapolation value.AnimState getAnimState()
AnimState
void setFrame(int frame)
frame
- frame to set.int getFrame()
float getRealFrame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |