C# Class FBClient.Sprites.BaseSprite

Afficher le fichier Open project: Noxalus/Final-Bomber Class Usage Examples

Protected Properties

Свойство Type Description
SourceRectangle Microsoft.Xna.Framework.Rectangle
Texture Microsoft.Xna.Framework.Graphics.Texture2D

Méthodes publiques

Méthode Description
BaseSprite ( Microsoft.Xna.Framework.Graphics.Texture2D image, Rectangle sourceRectangle ) : System
Draw ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position ) : void
Update ( GameTime gameTime ) : void

Method Details

BaseSprite() public méthode

public BaseSprite ( Microsoft.Xna.Framework.Graphics.Texture2D image, Rectangle sourceRectangle ) : System
image Microsoft.Xna.Framework.Graphics.Texture2D
sourceRectangle Microsoft.Xna.Framework.Rectangle
Résultat System

Draw() public méthode

public Draw ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
Résultat void

Update() public méthode

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

Property Details

SourceRectangle protected_oe property

protected Rectangle,Microsoft.Xna.Framework SourceRectangle
Résultat Microsoft.Xna.Framework.Rectangle

Texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics Texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D