added is dead method
This commit is contained in:
parent
90d685195d
commit
59a14f49db
1 changed files with 8 additions and 0 deletions
|
|
@ -253,6 +253,14 @@ public class Particles extends Entity{
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isDead(){
|
||||||
|
for(int i=0;i<maxParticles;i++) {
|
||||||
|
if(particle[i].active)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Activates all the particles
|
* Activates all the particles
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue