|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.particles.effects.FireEmitter
public class FireEmitter
A stock effect for fire usin the particle system
| Constructor Summary | |
|---|---|
FireEmitter()
Create a default fire effect at 0,0 |
|
FireEmitter(int x,
int y)
Create a default fire effect at x,y |
|
FireEmitter(int x,
int y,
float size)
Create a default fire effect at x,y |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FireEmitter()
public FireEmitter(int x,
int y)
x - The x coordinate of the fire effecty - The y coordinate of the fire effect
public FireEmitter(int x,
int y,
float size)
x - The x coordinate of the fire effecty - The y coordinate of the fire effectsize - The size of the particle being pumped out| Method Detail |
|---|
public void update(ParticleSystem system,
int delta)
ParticleEmitter
update in interface ParticleEmittersystem - The particle system used to create particlesdelta - The amount of time in milliseconds since last emitter updateParticleEmitter.update(org.newdawn.slick.particles.ParticleSystem, int)
public void updateParticle(Particle particle,
int delta)
ParticleEmitter
updateParticle in interface ParticleEmitterparticle - The particle to be updateddelta - The amount of time in millisecond since last particle updateParticleEmitter.updateParticle(org.newdawn.slick.particles.Particle, int)public boolean isEnabled()
ParticleEmitter
isEnabled in interface ParticleEmitterParticleEmitter.isEnabled()public void setEnabled(boolean enabled)
ParticleEmitter
setEnabled in interface ParticleEmitterenabled - True if the emitter should be enabledParticleEmitter.setEnabled(boolean)public boolean completed()
ParticleEmitter
completed in interface ParticleEmitterParticleEmitter.completed()public boolean useAdditive()
ParticleEmitter
useAdditive in interface ParticleEmitterParticleEmitter.useAdditive()public Image getImage()
ParticleEmitter
getImage in interface ParticleEmitterParticleEmitter.getImage()public boolean usePoints(ParticleSystem system)
ParticleEmitter
usePoints in interface ParticleEmittersystem - The particle system to cross check agianst
ParticleEmitter.usePoints(org.newdawn.slick.particles.ParticleSystem)public boolean isOriented()
ParticleEmitter
isOriented in interface ParticleEmitterParticleEmitter.isOriented()public void wrapUp()
ParticleEmitter
wrapUp in interface ParticleEmitterParticleEmitter.wrapUp()public void resetState()
ParticleEmitter
resetState in interface ParticleEmitterParticleEmitter.resetState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||