Packagecom.roguedevelopment.pulse.rule
Interfacepublic interface IPulseRule
ImplementorsAccelerationRule, BoundingBoxRule, ColorTransformRule, DeathRule, FadeRule, GravityRule, MouseSwarmRule, MovementRule, MovementStopRule, ParamTweenRule, PointSwarmRule, RotateRule, RotateToAngleRule, ScaleRule, TweenRule, XOscillatorRule

A rule defines a simple bit of behavior for a particle. You can specify a list of rules when creating a new factory.



Public Methods
 MethodDefined by
  
applyRule(pulse:IParticle, currentMs:Number, lastMs:Number):void
Used by the particle engine to apply a rule to a particle.
IPulseRule
  
configure(params:Array):void
Used by the SimpleParticles interface to configure the rule.
IPulseRule
Method detail
applyRule()method
public function applyRule(pulse:IParticle, currentMs:Number, lastMs:Number):void

Used by the particle engine to apply a rule to a particle. This happens every timeslice.

Parameters
pulse:IParticle
 
currentMs:Number
 
lastMs:Number
configure()method 
public function configure(params:Array):void

Used by the SimpleParticles interface to configure the rule.

Parameters
params:Array