C# Class Ctrl_Space.Gameplay.Ship

Inheritance: GameObject
Afficher le fichier Open project: vkd/Ctrl-Space Class Usage Examples

Protected Properties

Свойство Type Description
_weapon Ctrl_Space.Gameplay.Weapon.WeaponBase
_weaponAlt Ctrl_Space.Gameplay.Weapon.WeaponBase

Méthodes publiques

Méthode 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

Méthode Description
Collided ( Collision col, World world, Particles particles ) : void

Method Details

GetTexture() public méthode

public GetTexture ( ) : MetaTexture
Résultat Ctrl_Space.Graphics.MetaTexture

Reset() public méthode

public Reset ( Vector2 position, World world ) : void
position Microsoft.Xna.Framework.Vector2
world World
Résultat void

Rotate() public méthode

public Rotate ( float rotationSpeed ) : void
rotationSpeed float
Résultat void

Ship() public méthode

public Ship ( ) : Ctrl_Space.Gameplay.Bullets
Résultat Ctrl_Space.Gameplay.Bullets

Shoot() public méthode

public Shoot ( InputDigitalState state ) : void
state InputDigitalState
Résultat void

ShootAlt() public méthode

public ShootAlt ( InputDigitalState state ) : void
state InputDigitalState
Résultat void

SpeedUp() public méthode

public SpeedUp ( float acceleration ) : void
acceleration float
Résultat void

Strafe() public méthode

public Strafe ( float strafeStep ) : void
strafeStep float
Résultat void

Update() public méthode

public Update ( World world, Particles particles ) : void
world World
particles Ctrl_Space.Graphics.Particles
Résultat void

Property Details

_weapon protected_oe property

protected WeaponBase,Ctrl_Space.Gameplay.Weapon _weapon
Résultat Ctrl_Space.Gameplay.Weapon.WeaponBase

_weaponAlt protected_oe property

protected WeaponBase,Ctrl_Space.Gameplay.Weapon _weaponAlt
Résultat Ctrl_Space.Gameplay.Weapon.WeaponBase