C# Class ParticleEngine.Particle.AbstractParticle

Afficher le fichier Open project: Wotuu/RTS_XNA_v2

Méthodes publiques

Свойство Type Description
alive System.Boolean

Private Properties

Свойство Type Description

Méthodes publiques

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

public AbstractParticle ( ParticleEmitter emitter ) : System
emitter ParticleEngine.Emitter.ParticleEmitter
Résultat System

Draw() public méthode

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetLocation() public méthode

Gets the location of this particle on the screen.
public GetLocation ( ) : Point
Résultat Point

GetPercentageOfLifespan() public méthode

Gets the percentage of the lifespan the particle
public GetPercentageOfLifespan ( ) : int
Résultat int

ShouldDie() public méthode

Determines if the particle should die.
public ShouldDie ( ) : System.Boolean
Résultat System.Boolean

Update() public méthode

Updates the particle.
public Update ( float time_step ) : System.Boolean
time_step float FPS timestep
Résultat System.Boolean

Property Details

alive public_oe property

public Boolean,System alive
Résultat System.Boolean