C# Class Gravitation.SpriteObjects.EmpShot

Inheritance: AlternateShot
Show file Open project: thedamoes/Gravitation

Public Properties

Property Type Description
effectTime int

Public Methods

Method Description
Draw ( SpriteBatch theSpriteBatch ) : void
EmpShot ( World world, Vector2 position, float rotation, DestroyMeHandler onDeathHandler ) : System
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
Update ( GameTime gameTime, Matrix _view ) : void
altFire ( Vector2 theStartPosition, float rotation, float shotSpeed ) : void

Private Methods

Method Description
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool
rotateVector ( Vector2 direction, float angle ) : Vector2

Method Details

Draw() public method

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

EmpShot() public method

public EmpShot ( World world, Vector2 position, float rotation, DestroyMeHandler onDeathHandler ) : System
world FarseerPhysics.Dynamics.World
position Vector2
rotation float
onDeathHandler DestroyMeHandler
return System

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDeviceManager
return void

Update() public method

public Update ( GameTime gameTime, Matrix _view ) : void
gameTime GameTime
_view Matrix
return void

altFire() public method

public altFire ( Vector2 theStartPosition, float rotation, float shotSpeed ) : void
theStartPosition Vector2
rotation float
shotSpeed float
return void

Property Details

effectTime public property

public int effectTime
return int