C# Class Gravitation.SpriteObjects.Ship

Inheritance: Sprite, HUD.IHasLife
Show file Open project: thedamoes/Gravitation Class Usage Examples

Public Properties

Property Type Description
BASE_SHIP_RAYCAST_LENGTH float
altFireQuantity int
altShots List
currentFireState fireState
currentNegativeState negativeState
currentPassiveState passiveState
currentSecondaryFire secondaryFire
damage int
mShipParticles DPSF.ParticleSystems.ShipParticleSystem
sheilds int
shotSpeed float
shotsPerSec int
world FarseerPhysics.Dynamics.World

Public Methods

Method Description
Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName, GraphicsDeviceManager graphics ) : void
Ship ( SoundHandler player, float power, float sheildStrength ) : System
Ship ( World world, Vector2 position ) : System
altFire ( ) : void
fire ( ) : void
pauseThrustSound ( ) : void
playThrustSound ( ) : void
setPlayer ( SoundHandler player ) : void
thrust ( GameTime gameTime, Matrix _view ) : void
updateAltShot ( GameTime gameTime, Matrix _view ) : void
updateNegativeShipState ( GameTime gameTime, Matrix _view ) : void
updatePassiveShipState ( GameTime gameTime, Matrix _view ) : void
updateShot ( GameTime gameTime, Matrix _view ) : void

Private Methods

Method Description
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool
removeAltShot ( AlternateShot shotToRemove ) : void
removeShot ( Shot shotToRemove ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
debugView FarseerPhysics.DebugViewXNA
projection Matrix
view Matrix
return void

LoadContent() public method

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

Ship() public method

public Ship ( SoundHandler player, float power, float sheildStrength ) : System
player SoundHandler
power float
sheildStrength float
return System

Ship() public method

public Ship ( World world, Vector2 position ) : System
world FarseerPhysics.Dynamics.World
position Vector2
return System

altFire() public method

public altFire ( ) : void
return void

fire() public method

public fire ( ) : void
return void

pauseThrustSound() public method

public pauseThrustSound ( ) : void
return void

playThrustSound() public method

public playThrustSound ( ) : void
return void

setPlayer() public method

public setPlayer ( SoundHandler player ) : void
player SoundHandler
return void

thrust() public method

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

updateAltShot() public method

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

updateNegativeShipState() public method

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

updatePassiveShipState() public method

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

updateShot() public method

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

Property Details

BASE_SHIP_RAYCAST_LENGTH public static property

public static float BASE_SHIP_RAYCAST_LENGTH
return float

altFireQuantity public property

public int altFireQuantity
return int

altShots public property

public List altShots
return List

currentFireState public property

public fireState currentFireState
return fireState

currentNegativeState public property

public negativeState currentNegativeState
return negativeState

currentPassiveState public property

public passiveState currentPassiveState
return passiveState

currentSecondaryFire public property

public secondaryFire currentSecondaryFire
return secondaryFire

damage public property

public int damage
return int

mShipParticles public property

public ShipParticleSystem,DPSF.ParticleSystems mShipParticles
return DPSF.ParticleSystems.ShipParticleSystem

sheilds public property

public int sheilds
return int

shotSpeed public property

public float shotSpeed
return float

shotsPerSec public property

public int shotsPerSec
return int

world public property

public World,FarseerPhysics.Dynamics world
return FarseerPhysics.Dynamics.World