C# Class ThreadedPlatformer.AnimationPlayer

Controls playback of an Animation.
显示文件 Open project: sq/Fracture

Public Methods

Method Description
Draw ( GameTime gameTime, BitmapBatch batch, Vector2 position, SpriteEffects spriteEffects ) : void

Advances the time position and draws the current frame of the animation.

PlayAnimation ( Animation animation ) : void

Begins or continues playback of an animation.

Method Details

Draw() public method

Advances the time position and draws the current frame of the animation.
public Draw ( GameTime gameTime, BitmapBatch batch, Vector2 position, SpriteEffects spriteEffects ) : void
gameTime Microsoft.Xna.Framework.GameTime
batch BitmapBatch
position Vector2
spriteEffects SpriteEffects
return void

PlayAnimation() public method

Begins or continues playback of an animation.
public PlayAnimation ( Animation animation ) : void
animation Animation
return void