| Package | idv.cjcat.stardust.common.actions |
| Class | public class CompositeAction |
| Inheritance | CompositeAction Action StardustElement |
| Implements | ActionCollector |
| Subclasses | ActionTrigger, LazyAction |
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.
| Property | Defined by | ||
|---|---|---|---|
![]() | active : Boolean
Denotes if the action is active, true by default.
| Action | |
| checkComponentMasks : Boolean | CompositeAction | ||
![]() | mask : 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 | |
![]() | name : String | StardustElement | |
| needsSortedParticles : Boolean [read-only]
| CompositeAction | ||
![]() | onAdd : ISignal
Dispatched when the added to an emitter.
| Action | |
![]() | onPriorityChange : ISignal
Dispatched when the action's priority is changed.
| Action | |
![]() | onRemove : ISignal
Dispatched when the removed from an emitter.
| Action | |
![]() | priority : int
Actions will be sorted by the associated emitter according to their priorities.
| Action | |
![]() | skipThisAction : Boolean
Reset to false on each emitter step.
| Action | |
![]() | supports2D : Boolean
Whether this action supports 2D.
| Action | |
![]() | supports3D : Boolean
Whether this action supports 3D.
| Action | |
| Method | Defined by | ||
|---|---|---|---|
| CompositeAction | |||
|
Adds an action to the composite action.
| CompositeAction | ||
|
clearActions():void
Removes all actions from the composite action.
| CompositeAction | ||
![]() |
getElementTypeXMLTag():XML
| Action | |
|
getRelatedObjects():Array
| CompositeAction | ||
![]() |
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 | ||
| CompositeAction | |||
|
removeAction(action:Action):void
Removes an action to the composite action.
| CompositeAction | ||
|
sortActions(action:Action = null):void
| CompositeAction | ||
|
toXML():XML
| CompositeAction | ||
| CompositeAction | |||
| checkComponentMasks | property |
public var checkComponentMasks:Boolean
| needsSortedParticles | property |
needsSortedParticles:Boolean [read-only]Implementation
public function get needsSortedParticles():Boolean
| CompositeAction | () | constructor |
public function CompositeAction()
| addAction | () | method |
public function addAction(action:Action):voidAdds an action to the composite action.
Parametersaction:Action |
| clearActions | () | method |
public function clearActions():voidRemoves 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):voidRemoves an action to the composite action.
Parametersaction: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 |