void resetDecayTime()
Reset the decay time of this WaterParticle.
void update()
Process the decay timer, deleting this WaterParticle if the decay time has elapsed.
WaterParticle(ParticleLayer *layer, const QPointF &position, const QPointF &velocity, const QColor &color, float decayTime)
Constructs a WaterParticle in the given ParticleLayer with the specified position, velocity, color, and time-to-live.
A Particle which destroys itself after a decay time has elapsed.
Definition: WaterParticle.h:26
Wrapper around a LiquidFun particle.
Definition: Particle.h:34
void beginDecaying()
Start the decay of this WaterParticle.
Wrapper around a b2ParticleSystem, which represents an independent layer of particles.
Definition: ParticleLayer.h:32