de.rico.engine.effect.particle.custom
Class Rain

java.lang.Object
  extended by de.rico.engine.effect.particle.AbstractParticleEffect
      extended by de.rico.engine.effect.particle.custom.Rain

public class Rain
extends AbstractParticleEffect


Constructor Summary
Rain(float x, float y, float z, float size, int numberOfParticles, long maxPartAge, long creationIntervall)
          Creates a rain effect with the specified parameters.
 
Method Summary
 
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
 

Constructor Detail

Rain

public Rain(float x,
            float y,
            float z,
            float size,
            int numberOfParticles,
            long maxPartAge,
            long creationIntervall)
Creates a rain effect with the specified parameters. Be aware that an object of this class is just a single rain source with a limited range. If you would like to have rain all over the map you should add several rain sources (objects of this class) to your map.

Parameters:
x - x-coordinate
y - y-coordinate
z - z-coordinate
size - particle size
numberOfParticles - maximum number of particles to use
maxPartAge - maximum particle age (in miliseconds)
creationIntervall - intervall between the generation of two particles (in miliseconds)