| Package | org.flintparticles.initializers |
| Class | public class Initializer |
| Subclasses | AlphaInit, ApplyFilter, ColorInit, ImageClass, ImageClasses, Lifetime, Position, PositionAbsolute, RotateVelocity, Rotation, RotationAbsolute, ScaleInit, SharedImage, SharedImages, Velocity |
An Initializer is a class that is used to set an aspect of a particle when it is created. Initializers may, for example, set an initial velocity for a particle.
Initializers are added to all particles created by an emitter by using the emitter's addInitializer method.
See also
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates an Initializer object.
| Initializer | ||
|
addedToEmitter(emitter:Emitter):void
The addedToEmitter method is called from the emitter when the Initializer is added to it
It is called within the emitter's addInitializer method and need not
be called by the user.
| Initializer | ||
|
getDefaultPriority():Number
The getDefaultPriority method is used to order the execution of initializers.
| Initializer | ||
|
The initialize method is used by the emitter to initialize the particle.
| Initializer | ||
|
removedFromEmitter(emitter:Emitter):void
The removedFromEmitter method is called by the emitter when the Initializer is removed from it
It is called within the emitter's removeInitializer method and need not
be called by the user.
| Initializer | ||
| Initializer | () | constructor |
public function Initializer()The constructor creates an Initializer object. But you shouldn't use it because the Initializer class is abstract.
| addedToEmitter | () | method |
public function addedToEmitter(emitter:Emitter):voidThe addedToEmitter method is called from the emitter when the Initializer is added to it It is called within the emitter's addInitializer method and need not be called by the user.
Parametersemitter:Emitter — The Emitter that the Initializer was added to.
|
| getDefaultPriority | () | method |
public function getDefaultPriority():NumberThe getDefaultPriority method is used to order the execution of initializers. It is called within the emitter's addInitializer method when the user doesn't manually set a priority. It need not be called directly by the user.
ReturnsNumber |
See also
| initialize | () | method |
public function initialize(emitter:Emitter, particle:Particle):voidThe initialize method is used by the emitter to initialize the particle. It is called within the emitter's createParticle method and need not be called by the user.
Parametersemitter:Emitter — The Emitter that created the particle.
|
|
particle:Particle — The particle to be initialized.
|
| removedFromEmitter | () | method |
public function removedFromEmitter(emitter:Emitter):voidThe removedFromEmitter method is called by the emitter when the Initializer is removed from it It is called within the emitter's removeInitializer method and need not be called by the user.
Parametersemitter:Emitter — The Emitter that the Initializer was removed from.
|