Package | com.desuade.partigen.pools |
Class | public class NullPool |
Inheritance | NullPool ![]() ![]() |
Subclasses | SweepPool |
Language Version : | ActionScript 3 |
Since : | 07.05.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Method | Defined By | ||
---|---|---|---|
NullPool(particleClass:Class)
Creates a NullPool to store particle objects. | NullPool | ||
[override]
Adds a new particle to the Pool. | NullPool | ||
![]() | purge():void
This does nothing for Sweep and Null pools. | Pool | |
removeParticle(particle:*):void [override]
Removes the specified particle from the Pool.
If you're trying to remove a particle through custom code, it is recommended to simply call particle.kill() than to work directly with the pool.
| NullPool | ||
![]() | setClass(particleClass:Class):void
This sets the particleClass to the new class and deals with reseting the internal pool. | Pool |
NullPool | () | Constructor |
public function NullPool(particleClass:Class)
Creates a NullPool to store particle objects. This can be used with multiple emitters.
ParametersparticleClass:Class — The class of particle the pool will create.
|
addParticle | () | method |
override public function addParticle():IBasicParticle
Adds a new particle to the Pool.
ReturnsIBasicParticle — The particle created.
|
removeParticle | () | method |
override public function removeParticle(particle:*):void
Removes the specified particle from the Pool.
If you're trying to remove a particle through custom code, it is recommended to simply call particle.kill() than to work directly with the pool.
Parameters
particle:* — The particle to remove.
|