Packageidv.cjcat.stardust.common.actions
Classpublic class CompositeAction
InheritanceCompositeAction Inheritance Action Inheritance StardustElement
ImplementsActionCollector
SubclassesActionTrigger, LazyAction

This actions is a group of actions. Multiple actions can be grouped together into one single composite action.

Note that if the bitwise AND of a composite action's mask and a particle's mask is non-zero, all underlying component actions' update() methods will be called for the particle, without further checking the masks of these actions if the checkComponentMasks property is false, which is false by default.



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
Denotes if the action is active, true by default.
Action
  checkComponentMasks : Boolean
CompositeAction
 Inheritedmask : int
The action will affect a particle only if it's active and the bitwise AND of the action's mask and the particle's mask is non-zero, 1 by default.
Action
 Inheritedname : String
StardustElement
  needsSortedParticles : Boolean
[read-only]
CompositeAction
 InheritedonAdd : ISignal
Dispatched when the added to an emitter.
Action
 InheritedonPriorityChange : ISignal
Dispatched when the action's priority is changed.
Action
 InheritedonRemove : ISignal
Dispatched when the removed from an emitter.
Action
 Inheritedpriority : int
Actions will be sorted by the associated emitter according to their priorities.
Action
 InheritedskipThisAction : Boolean
Reset to false on each emitter step.
Action
 Inheritedsupports2D : Boolean
Whether this action supports 2D.
Action
 Inheritedsupports3D : Boolean
Whether this action supports 3D.
Action
Public Methods
 MethodDefined by
  
CompositeAction
  
addAction(action:Action):void
Adds an action to the composite action.
CompositeAction
  
clearActions():void
Removes all actions from the composite action.
CompositeAction
 Inherited
Action
  
CompositeAction
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
CompositeAction
  
parseXML(xml:XML, builder:XMLBuilder = null):void
CompositeAction
  
postUpdate(emitter:Emitter, time:Number):void
CompositeAction
  
preUpdate(emitter:Emitter, time:Number):void
CompositeAction
  
removeAction(action:Action):void
Removes an action to the composite action.
CompositeAction
  
sortActions(action:Action = null):void
CompositeAction
  
toXML():XML
CompositeAction
  
update(emitter:Emitter, particle:Particle, time:Number):void
CompositeAction
Property detail
checkComponentMasksproperty
public var checkComponentMasks:Boolean
needsSortedParticlesproperty 
needsSortedParticles:Boolean  [read-only]Implementation
    public function get needsSortedParticles():Boolean
Constructor detail
CompositeAction()constructor
public function CompositeAction()
Method detail
addAction()method
public function addAction(action:Action):void

Adds an action to the composite action.

Parameters
action:Action
clearActions()method 
public function clearActions():void

Removes all actions from the composite action.

getRelatedObjects()method 
public override function getRelatedObjects():Array

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

Returns
String
parseXML()method 
public override function parseXML(xml:XML, builder:XMLBuilder = null):voidParameters
xml:XML
 
builder:XMLBuilder (default = null)
postUpdate()method 
public final override function postUpdate(emitter:Emitter, time:Number):voidParameters
emitter:Emitter
 
time:Number
preUpdate()method 
public final override function preUpdate(emitter:Emitter, time:Number):voidParameters
emitter:Emitter
 
time:Number
removeAction()method 
public function removeAction(action:Action):void

Removes an action to the composite action.

Parameters
action:Action
sortActions()method 
public final function sortActions(action:Action = null):voidParameters
action:Action (default = null)
toXML()method 
public override function toXML():XML

Returns
XML
update()method 
public override function update(emitter:Emitter, particle:Particle, time:Number):voidParameters
emitter:Emitter
 
particle:Particle
 
time:Number