| Package | org.flintparticles.common.activities |
| Class | public class ActivityBase |
| Inheritance | ActivityBase Object |
| Implements | Activity |
| Subclasses | FollowDisplayObject, FollowMouse, MoveEmitter, 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:intReturns a default priority of 0 for this activity. Derived classes override this method if they want a different default priority.
public function get priority():int public function set priority(value:int):voidSee 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.
Parameters
emitter: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.
Parameters
emitter: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.
Parameters
emitter: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.
Parameters
emitter:Emitter — The Emitter.
| |
time:Number — The duration of the frame - used for time based updates.
|
See also