C# Class Ctrl_Space.Gameplay.GameObjects

Mostrar archivo Open project: vkd/Ctrl-Space

Public Methods

Method Description
CreateAsteroid ( ) : Asteroid
CreateEnemyShip ( Vector2 position, World world, Ship target ) : EnemyShip
CreateMedkit ( Vector2 position ) : Medkit
CreatePlasmaBullet ( ) : PlasmaBullet
CreateRocket ( Vector2 position, Vector2 speed, float rotation ) : Rocket
CreateShip ( Vector2 position, World world ) : Ship
CreateSinPlasmaBullet ( ) : SinPlasmaBullet
CreateSpeedBonus ( Vector2 position ) : SpeedBonus
GetObject ( int id ) : GameObject
ReleaseAsteroid ( Asteroid asteroid ) : void
ReleaseEnemyShip ( EnemyShip enemyShip ) : void
ReleaseMedkit ( Medkit medkit ) : void
ReleaseObject ( GameObject gameObject ) : void
ReleasePlasmaBullet ( PlasmaBullet plasmaBullet ) : void
ReleaseRocket ( Rocket rocket ) : void
ReleaseShip ( Ship ship ) : void
ReleaseSinPlasmaBullet ( SinPlasmaBullet plasmaBullet ) : void
ReleaseSpeedBonus ( SpeedBonus speedBonus ) : void

Private Methods

Method Description
AddObject ( GameObject gameObject ) : void

Method Details

CreateAsteroid() public method

public CreateAsteroid ( ) : Asteroid
return Asteroid

CreateEnemyShip() public method

public CreateEnemyShip ( Vector2 position, World world, Ship target ) : EnemyShip
position Microsoft.Xna.Framework.Vector2
world World
target Ship
return EnemyShip

CreateMedkit() public method

public CreateMedkit ( Vector2 position ) : Medkit
position Microsoft.Xna.Framework.Vector2
return Medkit

CreatePlasmaBullet() public method

public CreatePlasmaBullet ( ) : PlasmaBullet
return Ctrl_Space.Gameplay.Bullets.PlasmaBullet

CreateRocket() public method

public CreateRocket ( Vector2 position, Vector2 speed, float rotation ) : Rocket
position Microsoft.Xna.Framework.Vector2
speed Microsoft.Xna.Framework.Vector2
rotation float
return Ctrl_Space.Gameplay.Bullets.Rocket

CreateShip() public method

public CreateShip ( Vector2 position, World world ) : Ship
position Microsoft.Xna.Framework.Vector2
world World
return Ship

CreateSinPlasmaBullet() public method

public CreateSinPlasmaBullet ( ) : SinPlasmaBullet
return Ctrl_Space.Gameplay.Bullets.SinPlasmaBullet

CreateSpeedBonus() public method

public CreateSpeedBonus ( Vector2 position ) : SpeedBonus
position Microsoft.Xna.Framework.Vector2
return SpeedBonus

GetObject() public method

public GetObject ( int id ) : GameObject
id int
return GameObject

ReleaseAsteroid() public method

public ReleaseAsteroid ( Asteroid asteroid ) : void
asteroid Asteroid
return void

ReleaseEnemyShip() public method

public ReleaseEnemyShip ( EnemyShip enemyShip ) : void
enemyShip EnemyShip
return void

ReleaseMedkit() public method

public ReleaseMedkit ( Medkit medkit ) : void
medkit Medkit
return void

ReleaseObject() public method

public ReleaseObject ( GameObject gameObject ) : void
gameObject GameObject
return void

ReleasePlasmaBullet() public method

public ReleasePlasmaBullet ( PlasmaBullet plasmaBullet ) : void
plasmaBullet Ctrl_Space.Gameplay.Bullets.PlasmaBullet
return void

ReleaseRocket() public method

public ReleaseRocket ( Rocket rocket ) : void
rocket Ctrl_Space.Gameplay.Bullets.Rocket
return void

ReleaseShip() public method

public ReleaseShip ( Ship ship ) : void
ship Ship
return void

ReleaseSinPlasmaBullet() public method

public ReleaseSinPlasmaBullet ( SinPlasmaBullet plasmaBullet ) : void
plasmaBullet Ctrl_Space.Gameplay.Bullets.SinPlasmaBullet
return void

ReleaseSpeedBonus() public method

public ReleaseSpeedBonus ( SpeedBonus speedBonus ) : void
speedBonus SpeedBonus
return void