de.rico.engine.effect.particle.custom
Class Smoke
java.lang.Object
de.rico.engine.effect.particle.AbstractParticleEffect
de.rico.engine.effect.particle.custom.Smoke
public class Smoke
- extends AbstractParticleEffect
This class represents the particle effect that can be used as chimney smoke
for buildings.
- Author:
- Frank Bruns
Constructor Summary |
Smoke(float x,
float y,
float z,
float size,
int numberOfParticles,
long maxPartAge,
long creationIntervall)
Creates a smoke effect with the specified parameters. |
Methods inherited from class de.rico.engine.effect.particle.AbstractParticleEffect |
draw, getCreationInterval, getMaxPartAge, getMaxParticleCount, getParticleSize, getPosition, getTexturePath, setEnabled, setPosition, setPosition, setTexture, update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Smoke
public Smoke(float x,
float y,
float z,
float size,
int numberOfParticles,
long maxPartAge,
long creationIntervall)
- Creates a smoke effect with the specified parameters.
It is a relativly constant stream of particles that float to the
sky and have a little deviation to the left or right. The
particle gets rotated to mimic turbulence behaviour.
- Parameters:
x
- x-coordinatey
- y-coordinatez
- z-coordinatesize
- particle sizenumberOfParticles
- maximum number of particles to usemaxPartAge
- maximum particle age (in miliseconds)creationIntervall
- intervall between the generation of two particles (in miliseconds)