Packageidv.cjcat.stardust.common.clocks
Classpublic class Clock
InheritanceClock Inheritance StardustElement
SubclassesCompositeClock, ImpulseClock, RandomClock, SteadyClock

A clock is used by an emitter to determine how frequently particles are created.

See also

idv.cjcat.stardust.common.emitters.Emitter


Public Properties
 PropertyDefined by
 Inheritedname : String
StardustElement
Public Methods
 MethodDefined by
  
Clock
  
Clock
 Inherited
[Abstract Method] Returns the related objects of the element.
StardustElement
  
getTicks(time:Number):int
[Template Method] On each Emitter.step() call, this method is called.
Clock
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
 Inherited
getXMLTagName():String
[Abstract Method] Returns the name of the root node of the element's XML representation.
StardustElement
 Inherited
parseXML(xml:XML, builder:XMLBuilder = null):void
[Abstract Method] Reconstructs the element from XML representations.
StardustElement
 Inherited
toXML():XML
[Abstract Method] Generates XML representation.
StardustElement
Constructor detail
Clock()constructor
public function Clock()
Method detail
getElementTypeXMLTag()method
public override function getElementTypeXMLTag():XML

Returns
XML
getTicks()method 
public function getTicks(time:Number):int

[Template Method] On each Emitter.step() call, this method is called.

The returned value tells the emitter how many particles it should create.

Parameters
time:Number — The timespan of each emitter's step.

Returns
int