public class HeightMapTileFactory extends AbstractTileFactory
Constructor and Description |
---|
HeightMapTileFactory(long seed,
HeightMap heightMap,
int minHeight,
int maxHeight,
boolean floodWithLava,
Theme theme) |
Modifier and Type | Method and Description |
---|---|
void |
applyTheme(Tile tile,
int x,
int y) |
Tile |
createTile(int tileX,
int tileY) |
double |
getBaseHeight() |
java.awt.Rectangle |
getExtent() |
HeightMap |
getHeightMap() |
int |
getMaxHeight() |
int |
getMinHeight() |
long |
getSeed() |
Theme |
getTheme() |
int |
getWaterHeight() |
boolean |
isFloodWithLava() |
boolean |
isTilePresent(int x,
int y) |
protected void |
setBeaches(boolean beaches) |
void |
setHeightMap(HeightMap heightMap) |
void |
setMinMaxHeight(int minHeight,
int maxHeight,
HeightTransform transform) |
protected void |
setRandomise(boolean randomise) |
void |
setSeed(long seed) |
void |
setTheme(Theme theme) |
void |
setWaterHeight(int waterHeight) |
void |
transform(CoordinateTransform transform) |
getTile
public int getMinHeight()
public final int getMaxHeight()
public long getSeed()
public void setSeed(long seed)
public final void setMinMaxHeight(int minHeight, int maxHeight, HeightTransform transform)
public final int getWaterHeight()
public final void setWaterHeight(int waterHeight)
public final boolean isFloodWithLava()
public final HeightMap getHeightMap()
public final double getBaseHeight()
public final void setHeightMap(HeightMap heightMap)
public Theme getTheme()
public void setTheme(Theme theme)
public boolean isTilePresent(int x, int y)
public Tile createTile(int tileX, int tileY)
public java.awt.Rectangle getExtent()
public final void applyTheme(Tile tile, int x, int y)
public void transform(CoordinateTransform transform)
protected final void setRandomise(boolean randomise)
protected final void setBeaches(boolean beaches)