C# Class Gravitation.SpriteObjects.Shot

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

Public Properties

Property Type Description
Visible bool
damage int
mDirection Vector2
mposition Vector2
mrotation float
mworld FarseerPhysics.Dynamics.World
removed bool

Public Methods

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

Private Methods

Method Description
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool

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

Shot() public method

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

Update() public method

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

fire() public method

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

Property Details

Visible public property

public bool Visible
return bool

damage public property

public int damage
return int

mDirection public property

public Vector2 mDirection
return Vector2

mposition public property

public Vector2 mposition
return Vector2

mrotation public property

public float mrotation
return float

mworld public property

public World,FarseerPhysics.Dynamics mworld
return FarseerPhysics.Dynamics.World

removed public property

public bool removed
return bool