Packageorg.flintparticles.common.initializers
Classpublic class InitializerBase
InheritanceInitializerBase Inheritance Object
Implements Initializer
Subclasses AlphaInit, ApplyFilter, ChooseInitializer, CollisionRadiusInit, ColorInit, ColorsInit, DictionaryInitializer, ImageInitializerBase, InitializerGroup, Lifetime, MassInit, MouseEventHandlers, Position, PositionAbsolute, RotateVelocity, Rotation, RotationAbsolute, ScaleAllInit, ScaleAllsInit, ScaleImageInit, ScaleImagesInit, SetImageProperties, SharedImage, SharedImages, Velocity

The InitializerBase class is the abstract base class for all particle initializers in the Flint library. It implements the Initializer interface with a default priority of zero and empty methods for the rest of the interface.

Instances of the InitializerBase class should not be directly created because the InitializerBase class itself simply implements the Initializer interface with default methods that do nothing.

Developers creating custom initializers may either extend the InitializerBase class or implement the Initializer interface directly. Classes that extend the InitializerBase class need only to implement their own functionality for the methods they want to use, leaving other methods with their default empty implementations.

See also

org.flintparticles.common.emitters.Emitter.addInitializer()


Public Properties
 PropertyDefined By
  priority : int
Returns a default priority of 0 for this action.
InitializerBase
Protected Properties
 PropertyDefined By
  _priority : int = 0
InitializerBase
Public Methods
 MethodDefined By
  
The constructor creates an Initializer object.
InitializerBase
  
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
initialize(emitter:Emitter, particle:Particle):void
This method does nothing.
InitializerBase
  
This method does nothing.
InitializerBase
Property Detail
_priorityproperty
protected var _priority:int = 0

priorityproperty 
priority:int

Returns a default priority of 0 for this action. Derived classes overrid ethis method if they want a different default priority.


Implementation
    public function get priority():int
    public function set priority(value:int):void

See also

Constructor Detail
InitializerBase()Constructor
public function InitializerBase()

The constructor creates an Initializer object. But you shouldn't use it directly because the InitializerBase class is abstract.

Method Detail
addedToEmitter()method
public function addedToEmitter(emitter:Emitter):void

This method does nothing. Some derived classes override this method to perform actions when the initializer is added to an emitter.

Parameters

emitter:Emitter

See also

initialize()method 
public function initialize(emitter:Emitter, particle:Particle):void

This method does nothing. All derived classes override this method to initialize each particle created by the emitter.

Parameters

emitter:Emitter
 
particle:Particle

See also

removedFromEmitter()method 
public function removedFromEmitter(emitter:Emitter):void

This method does nothing. Some derived classes override this method to perform actions when the initializer is removed from the emitter.

Parameters

emitter:Emitter

See also