C# Class Gravitation.SpriteObjects.Net

Inheritance: AlternateShot
Datei anzeigen Open project: thedamoes/Gravitation

Public Properties

Property Type Description
collided bool
netHealth int

Public Methods

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

Private Methods

Method Description
rotateVector ( Vector2 direction, float angle ) : Vector2

Method Details

Draw() public method

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

LoadContent() public method

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

Net() public method

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

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

removeNet() public method

public removeNet ( ) : void
return void

Property Details

collided public_oe property

public bool collided
return bool

netHealth public_oe property

public int netHealth
return int