C# Class ParticleEngine.ParticleManager

Show file Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Private Properties

Property Type Description
ParticleManager System

Public Methods

Method Description
Draw ( GraphicsDevice device ) : void
GetInstance ( ) : ParticleManager
GetParticleCount ( ) : int

Gets the amount of particles currently on screen.

PauseUpdating ( ) : void

Pauses updating the particles, to be resumed by ResumeUpdating();

RemoveAllEmitters ( int timeToDieMS ) : void

Removes all emitters from the manager.

ResumeUpdating ( double currentTimeMS ) : void

Resumes updating particles.

Update ( float time_step ) : void

Private Methods

Method Description
ParticleManager ( ) : System

Method Details

Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

GetInstance() public static method

public static GetInstance ( ) : ParticleManager
return ParticleManager

GetParticleCount() public method

Gets the amount of particles currently on screen.
public GetParticleCount ( ) : int
return int

PauseUpdating() public method

Pauses updating the particles, to be resumed by ResumeUpdating();
public PauseUpdating ( ) : void
return void

RemoveAllEmitters() public method

Removes all emitters from the manager.
public RemoveAllEmitters ( int timeToDieMS ) : void
timeToDieMS int The time in which all effects must be gone.
return void

ResumeUpdating() public method

Resumes updating particles.
public ResumeUpdating ( double currentTimeMS ) : void
currentTimeMS double The current time in milliseconds.
return void

Update() public method

public Update ( float time_step ) : void
time_step float
return void