public class

AnimatedSprite

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

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Nested Classes
interface AnimatedSprite.IAnimationListener  
[Expand]
Inherited Constants
From class org.andengine.entity.sprite.TiledSprite
From class org.andengine.entity.sprite.Sprite
From interface org.andengine.entity.shape.IShape
From interface org.andengine.util.time.TimeConstants
[Expand]
Inherited Fields
From class org.andengine.entity.sprite.Sprite
From class org.andengine.entity.shape.RectangularShape
From class org.andengine.entity.shape.Shape
From class org.andengine.entity.Entity
Public Constructors
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager)
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, ShaderProgram pShaderProgram)
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType)
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType, ShaderProgram pShaderProgram)
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject)
AnimatedSprite(float pX, float pY, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, ShaderProgram pShaderProgram)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, ShaderProgram pShaderProgram)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType, ShaderProgram pShaderProgram)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject)
AnimatedSprite(float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, ShaderProgram pShaderProgram)
Public Methods
AnimatedSprite animate(long[] pFrameDurations, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long[] pFrameDurations, int[] pFrames, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
Animate specifics frames.
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 pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, int pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long pFrameDurationEach, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long[] pFrameDurations, int[] pFrames, int pLoopCount)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, boolean pLoop)
AnimatedSprite animate(long pFrameDurationEach, 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)
AnimatedSprite animate(long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)
AnimatedSprite animate(long[] pFrameDurations, AnimatedSprite.IAnimationListener pAnimationListener)
boolean isAnimationRunning()
void stopAnimation(int pTileIndex)
void stopAnimation()
Protected Methods
void onManagedUpdate(float pSecondsElapsed)
[Expand]
Inherited Methods
From class org.andengine.entity.sprite.TiledSprite
From class org.andengine.entity.sprite.Sprite
From class org.andengine.entity.shape.RectangularShape
From class org.andengine.entity.shape.Shape
From class org.andengine.entity.Entity
From class java.lang.Object
From interface org.andengine.engine.handler.IDrawHandler
From interface org.andengine.engine.handler.IUpdateHandler
From interface org.andengine.entity.IEntity
From interface org.andengine.entity.scene.Scene.ITouchArea
From interface org.andengine.entity.shape.IAreaShape
From interface org.andengine.entity.shape.IShape
From interface org.andengine.util.IDisposable

Public Constructors

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager)

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, ShaderProgram pShaderProgram)

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType)

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType, ShaderProgram pShaderProgram)

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject)

public AnimatedSprite (float pX, float pY, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, ShaderProgram pShaderProgram)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, ShaderProgram pShaderProgram)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, VertexBufferObjectManager pVertexBufferObjectManager, VertexBufferObject.DrawType pDrawType, ShaderProgram pShaderProgram)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject)

public AnimatedSprite (float pX, float pY, float pWidth, float pHeight, ITiledTextureRegion pTiledTextureRegion, TiledSprite.ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, ShaderProgram pShaderProgram)

Public Methods

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

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 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 pLoopCount, AnimatedSprite.IAnimationListener pAnimationListener)

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, AnimatedSprite.IAnimationListener pAnimationListener)

public AnimatedSprite animate (long pFrameDurationEach, boolean pLoop, 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 pFrameDurationEach, 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 AnimatedSprite animate (long[] pFrameDurations, int pFirstTileIndex, int pLastTileIndex, boolean pLoop, AnimatedSprite.IAnimationListener pAnimationListener)

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

public boolean isAnimationRunning ()

public void stopAnimation (int pTileIndex)

public void stopAnimation ()

Protected Methods

protected void onManagedUpdate (float pSecondsElapsed)