| Package | org.flintparticles.common.activities |
| Class | public class ActivityBase |
| Implements | Activity |
| Subclasses | 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
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates an ActivityBase object.
| ActivityBase | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
getDefaultPriority():Number
Returns a default priority of 0 for this activity.
| ActivityBase | ||
|
initialize(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActivityBase | ||
|
This method does nothing.
| ActivityBase | ||
| 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
| getDefaultPriority | () | method |
public function getDefaultPriority():NumberReturns a default priority of 0 for this activity. Derived classes override this method if they want a different default priority.
ReturnsNumber |
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