C# Class Project_Starfighter.AnimatedSprite

Afficher le fichier Open project: csce3513/Team15 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public AnimatedSprite ( ) : System
Résultat System

AnimatedSprite() public méthode

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
Résultat System

Draw() public méthode

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

GetSourceRect() public méthode

public GetSourceRect ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Update() public méthode

public Update ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
Résultat void