com.jmex.effects.water
Class WaterHeightGenerator

java.lang.Object
  extended by com.jmex.effects.water.WaterHeightGenerator
All Implemented Interfaces:
HeightGenerator

public class WaterHeightGenerator
extends java.lang.Object
implements HeightGenerator

WaterHeightGenerator Sample implementation of a water height generator

Author:
Rikard Herlitz (MrCoder)

Constructor Summary
WaterHeightGenerator()
           
 
Method Summary
 float getHeight(float x, float z, float time)
          How to animate/set heights on a grid
 float getHeightbig()
           
 float getHeightsmall()
           
 int getOctaves()
           
 float getScalexbig()
           
 float getScalexsmall()
           
 float getScaleybig()
           
 float getScaleysmall()
           
 float getSpeedbig()
           
 float getSpeedsmall()
           
 void setHeightbig(float heightbig)
           
 void setHeightsmall(float heightsmall)
           
 void setOctaves(int octaves)
           
 void setScalexbig(float scalexbig)
           
 void setScalexsmall(float scalexsmall)
           
 void setScaleybig(float scaleybig)
           
 void setScaleysmall(float scaleysmall)
           
 void setSpeedbig(float speedbig)
           
 void setSpeedsmall(float speedsmall)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaterHeightGenerator

public WaterHeightGenerator()
Method Detail

getHeight

public float getHeight(float x,
                       float z,
                       float time)
Description copied from interface: HeightGenerator
How to animate/set heights on a grid

Specified by:
getHeight in interface HeightGenerator
Parameters:
x - x position to get height for
z - z position to get height for
time - time to get height for
Returns:
height for specified position

getScalexsmall

public float getScalexsmall()

setScalexsmall

public void setScalexsmall(float scalexsmall)

getScaleysmall

public float getScaleysmall()

setScaleysmall

public void setScaleysmall(float scaleysmall)

getScalexbig

public float getScalexbig()

setScalexbig

public void setScalexbig(float scalexbig)

getScaleybig

public float getScaleybig()

setScaleybig

public void setScaleybig(float scaleybig)

getHeightsmall

public float getHeightsmall()

setHeightsmall

public void setHeightsmall(float heightsmall)

getHeightbig

public float getHeightbig()

setHeightbig

public void setHeightbig(float heightbig)

getSpeedsmall

public float getSpeedsmall()

setSpeedsmall

public void setSpeedsmall(float speedsmall)

getSpeedbig

public float getSpeedbig()

setSpeedbig

public void setSpeedbig(float speedbig)

getOctaves

public int getOctaves()

setOctaves

public void setOctaves(int octaves)