Packageidv.cjcat.stardust.twoD.initializers
Classpublic class PooledDisplayObjectClass
InheritancePooledDisplayObjectClass Inheritance Initializer2D Inheritance Initializer Inheritance StardustElement

This is a pooled version of the DisplayObjectClass initializer, which makes use of an object pool to reuse display objects, saving time spent for instantiating new display objects.

Default priority = 1;

See also

idv.cjcat.stardust.twoD.initializers.DisplayObjectClass


Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
Denotes if the initializer is active, true by default.
Initializer
  constructorParams : Array
PooledDisplayObjectClass
  displayObjectClass : Class
PooledDisplayObjectClass
 Inheritedname : String
StardustElement
  needsRecycle : Boolean
[read-only]
PooledDisplayObjectClass
 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
 Inheritedsupports2D : Boolean
Whether this initializer supports 2D.
Initializer
 Inheritedsupports3D : Boolean
Whether this initializer supports 3D.
Initializer
Public Methods
 MethodDefined by
  
PooledDisplayObjectClass(displayObjectClass:Class = null, constructorParams:Array = null)
PooledDisplayObjectClass
 Inherited
Initializer
 Inherited
[Abstract Method] Returns the related objects of the element.
StardustElement
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
PooledDisplayObjectClass
  
PooledDisplayObjectClass
 Inherited
parseXML(xml:XML, builder:XMLBuilder = null):void
Initializer
  
recycleInfo(particle:Particle):void
PooledDisplayObjectClass
 Inherited
toXML():XML
Initializer
Property detail
constructorParamsproperty
constructorParams:Array  [read-write]Implementation
    public function get constructorParams():Array
    public function set constructorParams(value:Array):void
displayObjectClassproperty 
displayObjectClass:Class  [read-write]Implementation
    public function get displayObjectClass():Class
    public function set displayObjectClass(value:Class):void
needsRecycleproperty 
needsRecycle:Boolean  [read-only]Implementation
    public function get needsRecycle():Boolean
Constructor detail
PooledDisplayObjectClass()constructor
public function PooledDisplayObjectClass(displayObjectClass:Class = null, constructorParams:Array = null)Parameters
displayObjectClass:Class (default = null)
 
constructorParams:Array (default = null)
Method detail
getXMLTagName()method
public override function getXMLTagName():String

Returns
String
initialize()method 
public override function initialize(p:Particle):voidParameters
p:Particle
recycleInfo()method 
public override function recycleInfo(particle:Particle):voidParameters
particle:Particle