C# Class WindowsGame1.AnimatedSprite

Inheritance: Sprite
Datei anzeigen Open project: csce3513/Team18 Class Usage Examples

Public Properties

Property Type Description
currentRow int

Public Methods

Method Description
AnimatedSprite ( ) : System
Animation ( Microsoft.Xna.Framework.Content.ContentManager content, string assetName, int spriteWidth, int spriteHeight, int numberOfFrames ) : void
HandleSourceRect ( GameTime gameTime ) : void
animateDraw ( SpriteBatch theSpriteBatch ) : void

Method Details

AnimatedSprite() public method

public AnimatedSprite ( ) : System
return System

Animation() public method

public Animation ( Microsoft.Xna.Framework.Content.ContentManager content, string assetName, int spriteWidth, int spriteHeight, int numberOfFrames ) : void
content Microsoft.Xna.Framework.Content.ContentManager
assetName string
spriteWidth int
spriteHeight int
numberOfFrames int
return void

HandleSourceRect() public method

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

animateDraw() public method

public animateDraw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Property Details

currentRow public_oe property

public int currentRow
return int