| Package | idv.cjcat.stardust.twoD.actions.triggers |
| Class | public class DeflectorTrigger |
| Inheritance | DeflectorTrigger ActionTrigger2D ActionTrigger CompositeAction Action StardustElement |
Default priority = -1;
| Property | Defined by | ||
|---|---|---|---|
![]() | active : Boolean
Denotes if the action is active, true by default.
| Action | |
![]() | checkComponentMasks : Boolean | CompositeAction | |
| deflector : Deflector | DeflectorTrigger | ||
![]() | inverted : Boolean | ActionTrigger | |
![]() | 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 | 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 | ||
|---|---|---|---|
|
DeflectorTrigger(deflector:Deflector = null)
| DeflectorTrigger | ||
![]() |
Adds an action to the composite action.
| CompositeAction | |
![]() |
clearActions():void
Removes all actions from the composite action.
| CompositeAction | |
![]() |
getElementTypeXMLTag():XML
| ActionTrigger | |
|
getRelatedObjects():Array
| DeflectorTrigger | ||
![]() |
getXMLTag():XML
Returns the root tag of the XML representation.
| StardustElement | |
|
getXMLTagName():String
| DeflectorTrigger | ||
|
parseXML(xml:XML, builder:XMLBuilder = null):void
| DeflectorTrigger | ||
![]() |
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 | |
| DeflectorTrigger | |||
|
toXML():XML
| DeflectorTrigger | ||
![]() |
Used if the trigger is added to a composite action.
| ActionTrigger | |
| deflector | property |
public var deflector:Deflector
| DeflectorTrigger | () | constructor |
public function DeflectorTrigger(deflector:Deflector = null)Parameters
deflector:Deflector (default = null) |
| 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) |
| testTrigger | () | method |
public override function testTrigger(emitter:Emitter, particle:Particle, time:Number):BooleanParameters
emitter:Emitter |
|
particle:Particle |
|
time:Number |
Boolean |
| toXML | () | method |
public override function toXML():XML
Returns
XML |