public static interface

AnimatedSprite.IAnimationListener

org.andengine.entity.sprite.AnimatedSprite.IAnimationListener

Summary

Public Methods
abstract void onAnimationFinished(AnimatedSprite pAnimatedSprite)
abstract void onAnimationFrameChanged(AnimatedSprite pAnimatedSprite, int pOldFrameIndex, int pNewFrameIndex)
abstract void onAnimationLoopFinished(AnimatedSprite pAnimatedSprite, int pRemainingLoopCount, int pInitialLoopCount)
abstract void onAnimationStarted(AnimatedSprite pAnimatedSprite, int pInitialLoopCount)

Public Methods

public abstract void onAnimationFinished (AnimatedSprite pAnimatedSprite)

public abstract void onAnimationFrameChanged (AnimatedSprite pAnimatedSprite, int pOldFrameIndex, int pNewFrameIndex)

Parameters
pOldFrameIndex equals AnimatedSprite#FRAMEINDEX_INVALID, the first time onAnimationFrameChanged(AnimatedSprite, int, int) is called.
pNewFrameIndex the new frame index of the currently active animation.

public abstract void onAnimationLoopFinished (AnimatedSprite pAnimatedSprite, int pRemainingLoopCount, int pInitialLoopCount)

Parameters
pRemainingLoopCount is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.
pInitialLoopCount is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.

public abstract void onAnimationStarted (AnimatedSprite pAnimatedSprite, int pInitialLoopCount)

Parameters
pInitialLoopCount is AnimatedSprite#LOOP_CONTINUOUS when AnimatedSprite loops infinitely.