|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.engine.effect.particle.ParticleContainer
public class ParticleContainer
This class is used to store and manage a set of similar particles
| Constructor Summary | |
|---|---|
ParticleContainer(int maxNumberOfParticles)
Creates a new container for particles |
|
| Method Summary | |
|---|---|
void |
addParticle(AbstractParticle particle)
Adds a particle to the particle container |
void |
clean()
This method removes all particles from the container that have already reached their maximum age and therefore shall not be used anymore. |
void |
deleteAll()
Removes every particle from the container. |
void |
deleteParticle(AbstractParticle particle)
Removes the specified particle from the container |
int |
getMaximumParticles()
Returns the maximum possible number of particles in the container |
int |
getParticleCount()
Returns the number of particles in the particle container |
java.util.ArrayList<AbstractParticle> |
getParticles()
Return a list with all the particles in the container |
void |
setMaximumParticles(int number)
Sets the maximum number of particles possible in the container |
void |
update(long elapsedTime)
Updates the particles in the container according to the amount of time passed since the last update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParticleContainer(int maxNumberOfParticles)
maxNumberOfParticles - maximum number of particles in the container| Method Detail |
|---|
public void addParticle(AbstractParticle particle)
particle - particle to addpublic void deleteParticle(AbstractParticle particle)
particle - particle to removepublic void deleteAll()
public void update(long elapsedTime)
elapsedTime - time between two framespublic void clean()
public java.util.ArrayList<AbstractParticle> getParticles()
public int getParticleCount()
public int getMaximumParticles()
public void setMaximumParticles(int number)
number - maximum number of possible particles
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||