C# Class CarpMuffin.Sprites.AnimatedSprite

Displays an animated image on the screen
Inheritance: Sprite
Show file Open project: BetaToast/CarpMuffin

Public Methods

Method Description
AnimatedSprite ( SpriteSheet spriteSheet, int frameCount, int frameLength ) : System
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 size, int frameCount, int frameLength ) : System
Draw ( SpriteBatch spriteBatch ) : void
Pause ( ) : void
ResetTimer ( int frameLength ) : void
Resume ( ) : void
Start ( ) : void
Stop ( ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
Tick ( Timer timer ) : void

Method Details

AnimatedSprite() public method

public AnimatedSprite ( SpriteSheet spriteSheet, int frameCount, int frameLength ) : System
spriteSheet SpriteSheet
frameCount int
frameLength int
return System

AnimatedSprite() public method

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 size, int frameCount, int frameLength ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
size Vector2
frameCount int
frameLength int
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Pause() public method

public Pause ( ) : void
return void

ResetTimer() public method

public ResetTimer ( int frameLength ) : void
frameLength int
return void

Resume() public method

public Resume ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Tick() protected method

protected Tick ( Timer timer ) : void
timer CarpMuffin.Timers.Timer
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void