C# Class Project_Starfighter.AnimatedSprite

Datei anzeigen Open project: csce3513/Team15 Class Usage Examples

Public Methods

Method Description
AnimatedSprite ( ) : System
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int FrameOffsetX, int FrameOffsetY, int FrameWidth, int FrameHeight, int FrameCount ) : System
Draw ( SpriteBatch spriteBatch, int XOffset, int YOffset, bool NeedBeginEnd ) : void
GetSourceRect ( ) : Rectangle
Update ( GameTime gametime ) : void

Method Details

AnimatedSprite() public method

public AnimatedSprite ( ) : System
return System

AnimatedSprite() public method

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int FrameOffsetX, int FrameOffsetY, int FrameWidth, int FrameHeight, int FrameCount ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
FrameOffsetX int
FrameOffsetY int
FrameWidth int
FrameHeight int
FrameCount int
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch, int XOffset, int YOffset, bool NeedBeginEnd ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
XOffset int
YOffset int
NeedBeginEnd bool
return void

GetSourceRect() public method

public GetSourceRect ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Update() public method

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