C# Class Danmaku_no_Kyojin.Sprites.BaseSprite

Datei anzeigen Open project: Noxalus/Danmaku-no-Kyojin

Protected Properties

Property Type Description
position Vector2
sourceRectangle Microsoft.Xna.Framework.Rectangle
speed float
texture Microsoft.Xna.Framework.Graphics.Texture2D
velocity Vector2

Public Methods

Method Description
BaseSprite ( Microsoft.Xna.Framework.Graphics.Texture2D image, Rectangle sourceRectangle ) : System
BaseSprite ( Microsoft.Xna.Framework.Graphics.Texture2D image, Rectangle sourceRectangle, Vector2 position ) : System
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : 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

BaseSprite() public method

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

Draw() public method

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

Update() public method

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

Property Details

position protected_oe property

protected Vector2 position
return Vector2

sourceRectangle protected_oe property

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

speed protected_oe property

protected float speed
return float

texture protected_oe property

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

velocity protected_oe property

protected Vector2 velocity
return Vector2