C# Class ParticleEngine.Particle.AbstractParticle

Show file Open project: Wotuu/RTS_XNA_v2

Public Properties

Property Type Description
alive System.Boolean

Private Properties

Property Type Description

Public Methods

Method Description
AbstractParticle ( ParticleEmitter emitter ) : System
Draw ( SpriteBatch sb ) : void
GetLocation ( ) : Point

Gets the location of this particle on the screen.

GetPercentageOfLifespan ( ) : int

Gets the percentage of the lifespan the particle

ShouldDie ( ) : System.Boolean

Determines if the particle should die.

Update ( float time_step ) : System.Boolean

Updates the particle.

Method Details

AbstractParticle() public method

public AbstractParticle ( ParticleEmitter emitter ) : System
emitter ParticleEngine.Emitter.ParticleEmitter
return System

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetLocation() public method

Gets the location of this particle on the screen.
public GetLocation ( ) : Point
return Point

GetPercentageOfLifespan() public method

Gets the percentage of the lifespan the particle
public GetPercentageOfLifespan ( ) : int
return int

ShouldDie() public method

Determines if the particle should die.
public ShouldDie ( ) : System.Boolean
return System.Boolean

Update() public method

Updates the particle.
public Update ( float time_step ) : System.Boolean
time_step float FPS timestep
return System.Boolean

Property Details

alive public property

public Boolean,System alive
return System.Boolean