| Package | org.flintparticles.common.activities |
| Class | public class ActivityBase |
| Implements | Activity |
| Subclasses | FollowDisplayObject, FollowMouse, MoveEmitter, MoveEmitter, RotateEmitter, RotateEmitter, UpdateOnFrame |
Instances of the ActivityBase class should not be directly created because the ActivityBase class itself simply implements the Activity interface with default methods that do nothing.
Developers creating custom activities may either extend the ActivityBase class or implement the Activity interface directly. Classes that extend the ActivityBase class need only to implement their own functionality for the methods they want to use, leaving other methods with their default empty implementations.
See also
| Property | Defined by | ||
|---|---|---|---|
| priority : int
Returns a default priority of 0 for this activity.
| ActivityBase | ||
| Property | Defined by | ||
|---|---|---|---|
| _priority : int = 0 | ActivityBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates an ActivityBase object.
| ActivityBase | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
initialize(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
This method does nothing.
| ActivityBase | ||
| _priority | property |
protected var _priority:int = 0
| priority | property |
priority:int [read-write]Returns a default priority of 0 for this activity. Derived classes override this method if they want a different default priority.
Implementation public function get priority():int
public function set priority(value:int):void
See also
| ActivityBase | () | constructor |
public function ActivityBase()The constructor creates an ActivityBase object. But you shouldn't use it directly because the ActivityBase class is abstract.
| addedToEmitter | () | method |
public function addedToEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the activity is added to an emitter.
Parametersemitter:Emitter — The Emitter that the Activity was added to.
|
See also
| initialize | () | method |
public function initialize(emitter:Emitter):voidThis method does nothing. Derived classes override this method to alter the state of the emitter when it starts.
Parametersemitter:Emitter — The Emitter.
|
See also
| removedFromEmitter | () | method |
public function removedFromEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the activity is removed from the emitter.
Parametersemitter:Emitter — The Emitter that the Action was removed from.
|
See also
| update | () | method |
public function update(emitter:Emitter, time:Number):voidThis method does nothing. Derived classes override this method to alter the state of the emitter every frame.
Parametersemitter:Emitter — The Emitter.
|
|
time:Number — The duration of the frame - used for time based updates.
|
See also