Package | cv.orion.output |
Class | public class SteadyOutput |
Implements | IOutput |
Subclasses | KeyDownOutput, TimedOutput |
import cv.Orion; import cv.orion.output.SteadyOutput; // First method var e:Orion = new Orion(linkageClass, new SteadyOutput(40)); // Second method var e2:Orion = new Orion(linkageClass); e2.output = new SteadyOutput(40);
Property | Defined by | ||
---|---|---|---|
particlesPerSecond : Number
The current rate assigned to SteadyOutput, in particles per second.
| SteadyOutput | ||
paused : Boolean
Gets or sets the paused property
| SteadyOutput |
Method | Defined by | ||
---|---|---|---|
SteadyOutput(particlesPerSecond:Number = 20)
Controls the output of the particles of the emitter.
| SteadyOutput | ||
pause():void
Pauses the output class.
| SteadyOutput | ||
play():void
Resumes or plays the output class.
| SteadyOutput | ||
This is called everytime the particles are called to update and be redrawn.
| SteadyOutput |
Method | Defined by | ||
---|---|---|---|
Checks if it's time to emit particles and how many.
| SteadyOutput | ||
updateTimes(emitter:Orion):void
Updates the previous and difference in times.
| SteadyOutput |
particlesPerSecond | property |
public var particlesPerSecond:Number
The current rate assigned to SteadyOutput, in particles per second.
paused | property |
paused:Boolean
[read-write]Gets or sets the paused property
Implementation public function get paused():Boolean
public function set paused(value:Boolean):void
SteadyOutput | () | constructor |
public function SteadyOutput(particlesPerSecond:Number = 20)
Controls the output of the particles of the emitter.
ParametersparticlesPerSecond:Number (default = 20 ) — The rate at which to output particles
|
checkEmit | () | method |
protected function checkEmit(emitter:Orion):void
Checks if it's time to emit particles and how many.
Parametersemitter:Orion |
pause | () | method |
public function pause():void
Pauses the output class.
play | () | method |
public function play():void
Resumes or plays the output class.
update | () | method |
public function update(emitter:Orion):void
This is called everytime the particles are called to update and be redrawn. Depending on the output class, this can determine the output of the particles.
Parametersemitter:Orion — The emitter to be used.
|
updateTimes | () | method |
protected function updateTimes(emitter:Orion):void
Updates the previous and difference in times. This determines when to emit and fix any pause issues.
Parametersemitter:Orion |