|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 effectpublic 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 outMethod Detail |
---|
public void update(ParticleSystem system, int delta)
ParticleEmitter
update
in interface ParticleEmitter
system
- 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 ParticleEmitter
particle
- 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 ParticleEmitter
ParticleEmitter.isEnabled()
public void setEnabled(boolean enabled)
ParticleEmitter
setEnabled
in interface ParticleEmitter
enabled
- True if the emitter should be enabledParticleEmitter.setEnabled(boolean)
public boolean completed()
ParticleEmitter
completed
in interface ParticleEmitter
ParticleEmitter.completed()
public boolean useAdditive()
ParticleEmitter
useAdditive
in interface ParticleEmitter
ParticleEmitter.useAdditive()
public Image getImage()
ParticleEmitter
getImage
in interface ParticleEmitter
ParticleEmitter.getImage()
public boolean usePoints(ParticleSystem system)
ParticleEmitter
usePoints
in interface ParticleEmitter
system
- The particle system to cross check agianst
ParticleEmitter.usePoints(org.newdawn.slick.particles.ParticleSystem)
public boolean isOriented()
ParticleEmitter
isOriented
in interface ParticleEmitter
ParticleEmitter.isOriented()
public void wrapUp()
ParticleEmitter
wrapUp
in interface ParticleEmitter
ParticleEmitter.wrapUp()
public void resetState()
ParticleEmitter
resetState
in interface ParticleEmitter
ParticleEmitter.resetState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |