Packageidv.cjcat.stardust.common.initializers
Classpublic class Life
InheritanceLife Inheritance Initializer Inheritance StardustElement

Sets a particle's life value based on the random property.



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
Denotes if the initializer is active, true by default.
Initializer
 Inheritedname : String
StardustElement
 InheritedneedsRecycle : Boolean
Initializer
 InheritedonAdd : ISignal
Dispatched when the added to an emitter.
Initializer
 InheritedonPriorityChange : ISignal
Dispatched when the action's priority is changed.
Initializer
 InheritedonRemove : ISignal
Dispatched when the removed from an emitter.
Initializer
 Inheritedpriority : int
Initializers will be sorted according to their priorities.
Initializer
  random : Random
A partilce's life is set according to this property.
Life
 Inheritedsupports2D : Boolean
Whether this initializer supports 2D.
Initializer
 Inheritedsupports3D : Boolean
Whether this initializer supports 3D.
Initializer
Public Methods
 MethodDefined by
  
Life(random:Random = null)
Life
 Inherited
Initializer
  
Life
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
Life
  
initialize(particle:Particle):void
Life
  
parseXML(xml:XML, builder:XMLBuilder = null):void
Life
 Inherited
recycleInfo(particle:Particle):void
[Template Method] This method is called after a particle's death if the needsRecycle() method returns true.
Initializer
  
toXML():XML
Life
Property detail
randomproperty
random:Random  [read-write]

A partilce's life is set according to this property.

Implementation
    public function get random():Random
    public function set random(value:Random):void
Constructor detail
Life()constructor
public function Life(random:Random = null)Parameters
random:Random (default = null)
Method detail
getRelatedObjects()method
public override function getRelatedObjects():Array

Returns
Array
getXMLTagName()method 
public override function getXMLTagName():String

Returns
String
initialize()method 
public final override function initialize(particle:Particle):voidParameters
particle:Particle
parseXML()method 
public override function parseXML(xml:XML, builder:XMLBuilder = null):voidParameters
xml:XML
 
builder:XMLBuilder (default = null)
toXML()method 
public override function toXML():XML

Returns
XML