C# Class WaveOculusDemoProject.Components.ProjectileManager

Inheritance: Behavior
Show file Open project: WaveEngine/Samples Class Usage Examples

Public Properties

Property Type Description
BusyProjectiles List
Capacity int
FreeProjectiles List

Public Methods

Method Description
FreeProjectile ( WaveOculusDemoProject.Components.ProjectileController projectile ) : void

Release a projectile to reuse other time

GetFreeProjectile ( ) : WaveOculusDemoProject.Components.ProjectileController

Get a new free projectile

Protected Methods

Method Description
DefaultValues ( ) : void

Instantiate a new projectile manager

Initialize ( ) : void

Initializes the new projectile manager

Update ( System.TimeSpan gameTime ) : void

Controls each projectile life

Private Methods

Method Description
InstantiateProjectiles ( int numProjectiles ) : void

Instantiate projectiles

Method Details

DefaultValues() protected method

Instantiate a new projectile manager
protected DefaultValues ( ) : void
return void

FreeProjectile() public method

Release a projectile to reuse other time
public FreeProjectile ( WaveOculusDemoProject.Components.ProjectileController projectile ) : void
projectile WaveOculusDemoProject.Components.ProjectileController The projectile
return void

GetFreeProjectile() public method

Get a new free projectile
public GetFreeProjectile ( ) : WaveOculusDemoProject.Components.ProjectileController
return WaveOculusDemoProject.Components.ProjectileController

Initialize() protected method

Initializes the new projectile manager
protected Initialize ( ) : void
return void

Update() protected method

Controls each projectile life
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The current gametime
return void

Property Details

BusyProjectiles public property

public List BusyProjectiles
return List

Capacity public property

public int Capacity
return int

FreeProjectiles public property

public List FreeProjectiles
return List