resource
Class HeightMapTexture

java.lang.Object
  extended by resource.HeightMapTexture

public class HeightMapTexture
extends java.lang.Object


Constructor Summary
HeightMapTexture(java.lang.String name)
           
 
Method Summary
 void addTexture(java.awt.image.BufferedImage tex, float height)
           
 java.awt.image.BufferedImage genTexture(GameMap map)
           
 java.lang.String getName()
           
 int getWeightedTextureValue(float height, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeightMapTexture

public HeightMapTexture(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

addTexture

public void addTexture(java.awt.image.BufferedImage tex,
                       float height)

genTexture

public java.awt.image.BufferedImage genTexture(GameMap map)

getWeightedTextureValue

public int getWeightedTextureValue(float height,
                                   int x,
                                   int y)