|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParticleEmitter
An emitter is responsible for producing the particles and controlling them during their life. An implementation of this interface can be considered a particle effect.
Method Summary | |
---|---|
boolean |
completed()
Check if this emitter has completed it's cycle |
Image |
getImage()
Get the image to draw for each particle |
boolean |
isEnabled()
Check if the emitter is enabled |
boolean |
isOriented()
Check if the particles produced should maintain orientation |
void |
resetState()
Clear the state of emitter back to default |
void |
setEnabled(boolean enabled)
Indicate whether the emitter should be enabled |
void |
update(ParticleSystem system,
int delta)
Update the emitter, produce any particles required by requesting them from the particle system provided. |
void |
updateParticle(Particle particle,
int delta)
Update a single particle that this emitter produced |
boolean |
useAdditive()
Check if this emitter should use additive blending |
boolean |
usePoints(ParticleSystem system)
Check if this emitter should use points based on it's own settings and those of the particle system |
void |
wrapUp()
Wrap up the particle emitter. |
Method Detail |
---|
void update(ParticleSystem system, int delta)
system
- The particle system used to create particlesdelta
- The amount of time in milliseconds since last emitter updateboolean completed()
void wrapUp()
void updateParticle(Particle particle, int delta)
particle
- The particle to be updateddelta
- The amount of time in millisecond since last particle updateboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- True if the emitter should be enabledboolean useAdditive()
Image getImage()
boolean isOriented()
boolean usePoints(ParticleSystem system)
system
- The particle system to cross check agianst
void resetState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |