added is dead method

This commit is contained in:
Ziver Koc 2007-04-18 10:50:31 +00:00
parent 90d685195d
commit 59a14f49db

View file

@ -253,6 +253,14 @@ public class Particles extends Entity{
return enabled;
}
public boolean isDead(){
for(int i=0;i<maxParticles;i++) {
if(particle[i].active)
return false;
}
return true;
}
/**
* Activates all the particles
*