C# Class Gravitation.SpriteObjects.NetLink

Inheritance: AlternateShot
Show file Open project: thedamoes/Gravitation Class Usage Examples

Public Properties

Property Type Description
contactMade bool
damageTaken int
damageToDeal int

Public Methods

Method Description
Draw ( SpriteBatch theSpriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
NetLink ( World world, Vector2 position, float rotation, DestroyMeHandler onDeathHandler ) : System
Update ( GameTime gameTime, Matrix _view ) : void
removeObject ( ) : 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

LoadContent() public method

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

NetLink() public method

public NetLink ( 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

removeObject() public method

public removeObject ( ) : void
return void

Property Details

contactMade public property

public bool contactMade
return bool

damageTaken public property

public int damageTaken
return int

damageToDeal public property

public int damageToDeal
return int