| Package | org.flintparticles.common.counters |
| Class | public class Blast |
| Inheritance | Blast Object |
| Implements | Counter |
| Property | Defined By | ||
|---|---|---|---|
| complete : Boolean [read-only]
Indicates if the counter has emitted all its particles. | Blast | ||
| running : Boolean [read-only]
Indicates if the counter is currently emitting particles
| Blast | ||
| startCount : Number
The number of particles to emit when the emitter starts. | Blast | ||
| Method | Defined By | ||
|---|---|---|---|
Blast(startCount:uint = 0)
The constructor creates a Blast counter for use by an emitter. | Blast | ||
resume():void
Does nothing. | Blast | ||
startEmitter(emitter:Emitter):uint
Initilizes the counter. | Blast | ||
stop():void
Does nothing. | Blast | ||
updateEmitter(emitter:Emitter, time:Number):uint
Returns 0 to indicate that no particles should be emitted after the
initial blast. | Blast | ||
| complete | property |
complete:Boolean [read-only] Indicates if the counter has emitted all its particles.
public function get complete():Boolean| running | property |
running:Boolean [read-only] Indicates if the counter is currently emitting particles
public function get running():Boolean| startCount | property |
startCount:NumberThe number of particles to emit when the emitter starts.
public function get startCount():Number public function set startCount(value:Number):void| Blast | () | Constructor |
public function Blast(startCount:uint = 0)The constructor creates a Blast counter for use by an emitter. To add a Blast counter to an emitter use the emitter's counter property.
ParametersstartCount:uint (default = 0) — The number of particles to emit
when the emitter starts.
|
See also
| resume | () | method |
public function resume():voidDoes nothing. Since the blast counter emits a single blast and then stops, stopping and resuming it changes nothing.
| startEmitter | () | method |
public function startEmitter(emitter:Emitter):uintInitilizes the counter. Returns startCount to indicate that the emitter should emit that many particles when it starts.
This method is called within the emitter's start method and need not be called by the user.
Parameters
emitter:Emitter — The emitter.
|
uint — the value of startCount.
|
See also
| stop | () | method |
public function stop():voidDoes nothing. Since the blast counter emits a single blast and then stops, stopping it changes nothing.
| updateEmitter | () | method |
public function updateEmitter(emitter:Emitter, time:Number):uintReturns 0 to indicate that no particles should be emitted after the initial blast.
This method is called within the emitter's update loop and need not be called by the user.
Parameters
emitter:Emitter — The emitter.
| |
time:Number — The time, in seconds, since the previous call to this method.
|
uint — 0
|
See also