C# Class FBClient.Sprites.BaseSprite

Mostrar archivo Open project: Noxalus/Final-Bomber Class Usage Examples

Protected Properties

Property Type Description
SourceRectangle Microsoft.Xna.Framework.Rectangle
Texture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method 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 method

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

Draw() public method

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

Update() public method

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

Property Details

SourceRectangle protected_oe property

protected Rectangle,Microsoft.Xna.Framework SourceRectangle
return Microsoft.Xna.Framework.Rectangle

Texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics Texture
return Microsoft.Xna.Framework.Graphics.Texture2D