|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.view.ParticleManager
A simple manager for particles. I wouldn't call it a "system" for now...
Constructor Summary | |
ParticleManager(com.threed.jpct.World level)
Creates a new particle manager with a default number of particles (100). |
|
ParticleManager(com.threed.jpct.World level,
int max)
Creates a new particle manager for a number of particles. |
Method Summary | |
void |
addParticle(com.threed.jpct.SimpleVector pos,
com.threed.jpct.SimpleVector vel,
float limit,
long time,
java.lang.String texture)
Adds a new particle to the manager. |
void |
addParticle(com.threed.jpct.SimpleVector pos,
com.threed.jpct.SimpleVector vel,
float limit,
java.lang.String texture)
Adds a new particle to the manager. |
void |
addParticle(com.threed.jpct.SimpleVector pos,
com.threed.jpct.SimpleVector vel,
long time,
java.lang.String texture)
Adds a new particle to the manager. |
void |
move(long ticks)
Moves all particles manmaged by this manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParticleManager(com.threed.jpct.World level)
level
- World the worldpublic ParticleManager(com.threed.jpct.World level, int max)
level
- World the worldmax
- int the number of particlesMethod Detail |
public void move(long ticks)
ticks
- long the number of ticks passed since the last callpublic void addParticle(com.threed.jpct.SimpleVector pos, com.threed.jpct.SimpleVector vel, float limit, java.lang.String texture)
pos
- SimpleVector the positionvel
- SimpleVector the velocitylimit
- float the y-limittexture
- String the texture's namepublic void addParticle(com.threed.jpct.SimpleVector pos, com.threed.jpct.SimpleVector vel, long time, java.lang.String texture)
pos
- SimpleVector the positionvel
- SimpleVector the velocitytime
- long the life timetexture
- String the texture's namepublic void addParticle(com.threed.jpct.SimpleVector pos, com.threed.jpct.SimpleVector vel, float limit, long time, java.lang.String texture)
pos
- SimpleVector the positionvel
- SimpleVector the velocitylimit
- float the y-limittime
- long the time-limittexture
- String the texture's name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |