C# Class Gravitation.SpriteObjects.AlternateShot

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

Public Properties

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

Public Methods

Method Description
Draw ( SpriteBatch theSpriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics, String textureName, String spriteSheet, int heightScale, int widthScale ) : void
Update ( GameTime gameTime, Matrix _view ) : void
fire ( Vector2 position, 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

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics, String textureName, String spriteSheet, int heightScale, int widthScale ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDeviceManager
textureName String
spriteSheet String
heightScale int
widthScale int
return void

Update() public method

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

fire() public method

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

Property Details

Visible public property

public bool Visible
return bool

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

ondeathHandler public property

public DestroyMeHandler ondeathHandler
return DestroyMeHandler

removed public property

public bool removed
return bool