C# Class Ctrl_Space.Gameplay.Ship

Inheritance: GameObject
Mostrar archivo Open project: vkd/Ctrl-Space Class Usage Examples

Protected Properties

Property Type Description
_weapon Ctrl_Space.Gameplay.Weapon.WeaponBase
_weaponAlt Ctrl_Space.Gameplay.Weapon.WeaponBase

Public Methods

Method Description
GetTexture ( ) : MetaTexture
Reset ( Vector2 position, World world ) : void
Rotate ( float rotationSpeed ) : void
Ship ( ) : Ctrl_Space.Gameplay.Bullets
Shoot ( InputDigitalState state ) : void
ShootAlt ( InputDigitalState state ) : void
SpeedUp ( float acceleration ) : void
Strafe ( float strafeStep ) : void
Update ( World world, Particles particles ) : void

Private Methods

Method Description
Collided ( Collision col, World world, Particles particles ) : void

Method Details

GetTexture() public method

public GetTexture ( ) : MetaTexture
return Ctrl_Space.Graphics.MetaTexture

Reset() public method

public Reset ( Vector2 position, World world ) : void
position Microsoft.Xna.Framework.Vector2
world World
return void

Rotate() public method

public Rotate ( float rotationSpeed ) : void
rotationSpeed float
return void

Ship() public method

public Ship ( ) : Ctrl_Space.Gameplay.Bullets
return Ctrl_Space.Gameplay.Bullets

Shoot() public method

public Shoot ( InputDigitalState state ) : void
state InputDigitalState
return void

ShootAlt() public method

public ShootAlt ( InputDigitalState state ) : void
state InputDigitalState
return void

SpeedUp() public method

public SpeedUp ( float acceleration ) : void
acceleration float
return void

Strafe() public method

public Strafe ( float strafeStep ) : void
strafeStep float
return void

Update() public method

public Update ( World world, Particles particles ) : void
world World
particles Ctrl_Space.Graphics.Particles
return void

Property Details

_weapon protected_oe property

protected WeaponBase,Ctrl_Space.Gameplay.Weapon _weapon
return Ctrl_Space.Gameplay.Weapon.WeaponBase

_weaponAlt protected_oe property

protected WeaponBase,Ctrl_Space.Gameplay.Weapon _weaponAlt
return Ctrl_Space.Gameplay.Weapon.WeaponBase