Class ParticleParameter
java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.xml.ParticleParameter
- All Implemented Interfaces:
java.io.Serializable
public class ParticleParameter
extends java.lang.Object
implements java.io.Serializable- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ParticleParameter()ParticleParameter(float value)ParticleParameter(float minValue, float maxValue)Method Summary
Modifier and Type Method Description doubleget()Gets either the actual value or a random value, depending on the random number flag being set.doublegetMaxValue()doublegetMinValue()floatgetRandomNumber()voidsetMaxValue(double maxValue)voidsetMinValue(double minValue)
Constructor Details
ParticleParameter
public ParticleParameter()ParticleParameter
public ParticleParameter(float value)ParticleParameter
public ParticleParameter(float minValue, float maxValue)
Method Details
get
public double get()Gets either the actual value or a random value, depending on the random number flag being set.- Returns:
- The value of this parameter.
getMaxValue
public double getMaxValue()getMinValue
public double getMinValue()getRandomNumber
public float getRandomNumber()setMaxValue
public void setMaxValue(double maxValue)setMinValue
public void setMinValue(double minValue)
