| Package | org.flintparticles.common.behaviours |
| Interface | public interface Behaviour |
| Property | Defined By | ||
|---|---|---|---|
| priority : int
The priority property is used to order the execution of behaviours. | Behaviour | ||
| Method | Defined By | ||
|---|---|---|---|
addedToEmitter(emitter:Emitter):void
The addedToEmitter method is called by the emitter when the Behaviour is
added to it. | Behaviour | ||
removedFromEmitter(emitter:Emitter):void
The removedFromEmitter method is called by the emitter when the Behaviour
is removed from it. | Behaviour | ||
| priority | property |
priority:intThe priority property is used to order the execution of behaviours.
The behaviours within the Flint library use 0 as the default priority. Some behaviours that need to be called early have priorities of 10 or 20. Behaviours that need to be called late have priorities of -10 or -20.
For example, the move action has a priority of -20 because the movement should be performed last, after other actions have made changes to the particle's velocity.
public function get priority():int public function set priority(value:int):void| addedToEmitter | () | method |
public function addedToEmitter(emitter:Emitter):voidThe addedToEmitter method is called by the emitter when the Behaviour is added to it. It is an opportunity for a behaviour to do any initializing that is relative to the emitter. Only a few behaviours make use of this method. It is called by the emitter and need not be called by the user.
Parameters
emitter:Emitter — The Emitter that the Behaviour was added to.
|
| removedFromEmitter | () | method |
public function removedFromEmitter(emitter:Emitter):voidThe removedFromEmitter method is called by the emitter when the Behaviour is removed from it. It is an opportunity for a behaviour to do any finalizing that is relative to the emitter. Only a few behaviours make use of this method. It is called by the emitter and need not be called by the user.
Parameters
emitter:Emitter — The Emitter that the Behaviour was removed from.
|