public static interface AnimatedSprite.IAnimationListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAnimationFinished(AnimatedSprite pAnimatedSprite) |
void |
onAnimationFrameChanged(AnimatedSprite pAnimatedSprite,
int pOldFrameIndex,
int pNewFrameIndex) |
void |
onAnimationLoopFinished(AnimatedSprite pAnimatedSprite,
int pRemainingLoopCount,
int pInitialLoopCount) |
void |
onAnimationStarted(AnimatedSprite pAnimatedSprite,
int pInitialLoopCount) |
void onAnimationStarted(AnimatedSprite pAnimatedSprite, int pInitialLoopCount)
pAnimatedSprite - pInitialLoopCount - is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.void onAnimationFrameChanged(AnimatedSprite pAnimatedSprite, int pOldFrameIndex, int pNewFrameIndex)
pAnimatedSprite - pOldFrameIndex - equals AnimatedSprite.FRAMEINDEX_INVALID, the first time onAnimationFrameChanged(AnimatedSprite, int, int) is called.pNewFrameIndex - the new frame index of the currently active animation.void onAnimationLoopFinished(AnimatedSprite pAnimatedSprite, int pRemainingLoopCount, int pInitialLoopCount)
pAnimatedSprite - pRemainingLoopCount - is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.pInitialLoopCount - is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.void onAnimationFinished(AnimatedSprite pAnimatedSprite)