C# Class AnimatedSprite.CrossHair

Inheritance: Sprite
Datei anzeigen Open project: itsligoGames/MonoGameTileSheetExample Class Usage Examples

Public Methods

Method Description
CrossHair ( Vector2 userPosition, List cursor, int frameWidth, int frameHeight, float layerDepth ) : System
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tx ) : void
Update ( GameTime gametime ) : void

Method Details

CrossHair() public method

public CrossHair ( Vector2 userPosition, List cursor, int frameWidth, int frameHeight, float layerDepth ) : System
userPosition Vector2
cursor List
frameWidth int
frameHeight int
layerDepth float
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tx ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
tx Microsoft.Xna.Framework.Graphics.Texture2D
return void

Update() public method

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