public class

AnimatedSprite

extends TiledSprite
implements TimeConstants
java.lang.Object
   ↳ org.anddev.andengine.entity.Entity
     ↳ org.anddev.andengine.entity.shape.Shape
       ↳ org.anddev.andengine.entity.shape.RectangularShape
         ↳ org.anddev.andengine.entity.primitive.BaseRectangle
           ↳ org.anddev.andengine.entity.sprite.BaseSprite
             ↳ org.anddev.andengine.entity.sprite.TiledSprite
               ↳ org.anddev.andengine.entity.sprite.AnimatedSprite
Known Direct Subclasses

Summary

Nested Classes
interface AnimatedSprite.IAnimationListener  
[Expand]
Inherited Constants
From class org.anddev.andengine.entity.shape.Shape
From interface org.anddev.andengine.util.constants.TimeConstants
[Expand]
Inherited Fields
From class org.anddev.andengine.entity.sprite.BaseSprite
From class org.anddev.andengine.entity.shape.RectangularShape
From class org.anddev.andengine.entity.shape.Shape
From class org.anddev.andengine.entity.Entity
Public Constructors
AnimatedSprite(float pX, float pY, TiledTextureRegion pTiledTextureRegion)
AnimatedSprite(float pX, float pY, float pTileWidth, float pTileHeight, TiledTextureRegion pTiledTextureRegion)
AnimatedSprite(float pX, float pY, TiledTextureRegion pTiledTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)
AnimatedSprite(float pX, float pY, float pTileWidth, float pTileHeight, TiledTextureRegion pTiledTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)
Public Methods
AnimatedSprite animate(long[] pFrameDurations, int[] pFrames, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
Animate specifics frames
AnimatedSprite animate(long[] pFrameDurations, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach, boolean pLoop)
AnimatedSprite animate(long[] pFrameDurations, int pLoopCount)
AnimatedSprite animate(long pFrameDurationEach, int pLoopCount)
AnimatedSprite animate(long[] pFrameDurations)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long[] pFrameDurations, int[] pFrames, int pLoopCount)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, boolean pLoop)
AnimatedSprite animate(long[] pFrameDurations, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, int pLoopCount)
AnimatedSprite animate(long[] pFrameDurations, boolean pLoop)
boolean isAnimationRunning()
void stopAnimation(int pTileIndex)
void stopAnimation()
Protected Methods
void onManagedUpdate(float pSecondsElapsed)
[Expand]
Inherited Methods
From class org.anddev.andengine.entity.sprite.TiledSprite
From class org.anddev.andengine.entity.sprite.BaseSprite
From class org.anddev.andengine.entity.primitive.BaseRectangle
From class org.anddev.andengine.entity.shape.RectangularShape
From class org.anddev.andengine.entity.shape.Shape
From class org.anddev.andengine.entity.Entity
From class java.lang.Object
From interface org.anddev.andengine.engine.handler.IUpdateHandler
From interface org.anddev.andengine.entity.IEntity
From interface org.anddev.andengine.entity.scene.Scene.ITouchArea
From interface org.anddev.andengine.entity.shape.IShape
From interface org.anddev.andengine.opengl.IDrawable

Public Constructors

public AnimatedSprite (float pX, float pY, TiledTextureRegion pTiledTextureRegion)

public AnimatedSprite (float pX, float pY, float pTileWidth, float pTileHeight, TiledTextureRegion pTiledTextureRegion)

public AnimatedSprite (float pX, float pY, TiledTextureRegion pTiledTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)

public AnimatedSprite (float pX, float pY, float pTileWidth, float pTileHeight, TiledTextureRegion pTiledTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)

Public Methods

public AnimatedSprite animate (long[] pFrameDurations, int[] pFrames, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)

Animate specifics frames

Parameters
pFrameDurations must have the same length as pFrames.
pFrames indices of the frames to animate.

public AnimatedSprite animate (long[] pFrameDurations, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)

public AnimatedSprite animate (long pFrameDurationEach, boolean pLoop)

public AnimatedSprite animate (long[] pFrameDurations, int pLoopCount)

public AnimatedSprite animate (long pFrameDurationEach, int pLoopCount)

public AnimatedSprite animate (long[] pFrameDurations)

public AnimatedSprite animate (long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)

Parameters
pFrameDurations must have the same length as pFirstTileIndex to pLastTileIndex.

public AnimatedSprite animate (long pFrameDurationEach, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)

public AnimatedSprite animate (long pFrameDurationEach, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)

public AnimatedSprite animate (long[] pFrameDurations, int[] pFrames, int pLoopCount)

public AnimatedSprite animate (long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, boolean pLoop)

public AnimatedSprite animate (long[] pFrameDurations, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)

public AnimatedSprite animate (long pFrameDurationEach)

public AnimatedSprite animate (long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, int pLoopCount)

public AnimatedSprite animate (long[] pFrameDurations, boolean pLoop)

public boolean isAnimationRunning ()

public void stopAnimation (int pTileIndex)

public void stopAnimation ()

Protected Methods

protected void onManagedUpdate (float pSecondsElapsed)