WaterParticle * getParticleWithUserData(void *userData) const
Returns the WaterParticle associated with the given particle's user data, or nullptr if it does not c...
bool containsParticle(WaterParticle *particle) const
Returns whether or not the given WaterParticle exists in this set.
A collection of WaterParticles which can perform updates each frame.
Definition: WaterParticleSet.h:31
A Particle which destroys itself after a decay time has elapsed.
Definition: WaterParticle.h:26
void update()
Calls WaterParticle::update() on all WaterParticles in this set.
int getParticleCount() const
Returns the number of WaterParticles in this set.
Definition: WaterParticleSet.h:42
void clearParticles()
Deletes all WaterParticles associated with this set, deleting the associated LiquidFun particles as w...
WaterParticleSet()
Construct an empty WaterParticleSet.
void addParticle(WaterParticle *particle)
Adds a WaterParticle to be tracked by this set.