C# Class AnimatedSprite.Projectile

Inheritance: AnimatedSprite.RotatingSprite
显示文件 Open project: itsligoGames/MonoGameTileSheetExample Class Usage Examples

Protected Properties

Property Type Description
RocketVelocity float

Public Methods

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

Method Details

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

Projectile() public method

public Projectile ( Vector2 userPosition, List projectiletRefs, List explosionRef, int frameWidth, int frameHeight, float layerDepth ) : System
userPosition Vector2
projectiletRefs List
explosionRef List
frameWidth int
frameHeight int
layerDepth float
return System

Update() public method

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

fire() public method

public fire ( Vector2 SiteTarget ) : void
SiteTarget Vector2
return void

Property Details

RocketVelocity protected_oe property

protected float RocketVelocity
return float