Packagecom.desuade.partigen.pools
Classpublic class NullPool
InheritanceNullPool Inheritance Pool Inheritance Object
Subclasses SweepPool

Language Version : ActionScript 3
Since : 07.05.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

This offers basic object storage without any real 'pooling'.



Public Properties
 PropertyDefined By
 Inheritedlength : int
[read-only] Returns the total amount of particles in the pool.
Pool
 InheritedparticleClass : Class
[read-only] Gets the class of particle the pool creates.
Pool
 Inheritedparticles : Dictionary
[read-only] A Dictionary object of all the current "living" particles.
Pool
Public Methods
 MethodDefined By
  
NullPool(particleClass:Class)
Creates a NullPool to store particle objects.
NullPool
  
[override] Adds a new particle to the Pool.
NullPool
 Inherited
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
 Inherited
setClass(particleClass:Class):void
This sets the particleClass to the new class and deals with reseting the internal pool.
Pool
Constructor Detail
NullPool()Constructor
public function NullPool(particleClass:Class)

Creates a NullPool to store particle objects. This can be used with multiple emitters.

Parameters
particleClass:Class — The class of particle the pool will create.
Method Detail
addParticle()method
override public function addParticle():IBasicParticle

Adds a new particle to the Pool.

Returns
IBasicParticle — 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.