simogl.effect.particle.custom
Class Rain

java.lang.Object
  extended by simogl.effect.particle.AbstractParticleEffect
      extended by simogl.effect.particle.custom.Rain

public class Rain
extends AbstractParticleEffect


Constructor Summary
Rain(float x, float y, float z, int numberOfParticles, long maxPartAge, long creationIntervall)
          Creates a rain effect with the specified parameters.
 
Method Summary
 
Methods inherited from class simogl.effect.particle.AbstractParticleEffect
draw, setEnabled, setPosition, setPosition, 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,
            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
numberOfParticles - maximum number of particles to use
maxPartAge - maximum particle age (in miliseconds)
creationIntervall - intervall between the generation of two particles (in miliseconds)