| Package | org.flintparticles.twoD.particles |
| Class | public class ParticleCreator2D |
| Implements | ParticleFactory |
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates a ParticleCreator object.
| ParticleCreator2D | ||
|
clearAllParticles():void
Empties the particle pool.
| ParticleCreator2D | ||
|
Obtains a new Particle object.
| ParticleCreator2D | ||
|
disposeParticle(particle:Particle):void
Returns a particle to the particle pool for reuse
| ParticleCreator2D | ||
| ParticleCreator2D | () | constructor |
public function ParticleCreator2D()The constructor creates a ParticleCreator object.
| clearAllParticles | () | method |
public function clearAllParticles():voidEmpties the particle pool.
| createParticle | () | method |
public function createParticle():ParticleObtains a new Particle object. The createParticle method will return a dead particle from the poll of dead particles or create a new particle if none are available.
ReturnsParticle —
a Particle object.
|
| disposeParticle | () | method |
public function disposeParticle(particle:Particle):voidReturns a particle to the particle pool for reuse
Parametersparticle:Particle — The particle to return for reuse.
|