plugins.engines
Class Craters
java.lang.Object
Utilities.NoiseEngine
plugins.engines.CellBasis
plugins.engines.Craters
public class Craters
- extends CellBasis
- Author:
- burnetd
To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
| Fields inherited from class plugins.engines.CellBasis |
cellCount, cells, distanceCalc, gridProjection, HASH_MOD_VALUE, metric, panel, preview, previewNoise, rand, seed, xNoise, xOffset, yNoise, yOffset, zNoise, zOffset |
| Methods inherited from class plugins.engines.CellBasis |
calculateSumDistances, copy, description, FindNeighbours, getNoiseForVertex, getNoiseOffset, getNoiseSize, getPanel, getPreviewNoise, getVertex, main, makePreview, paintIcon, Parameters, restoreSettings, setProjection, setTerrain, storeSettings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Craters
public Craters()
getScaledMovedNoiseForVertex
public double getScaledMovedNoiseForVertex(double x,
double y,
double z)
- Description copied from class:
NoiseEngine
- Range 0 to 1 spans the width of the preview window.
- Overrides:
getScaledMovedNoiseForVertex in class CellBasis
- Returns:
getNoiseForVertex
public double getNoiseForVertex(Vertex vertex)
- Overrides:
getNoiseForVertex in class CellBasis
name
public java.lang.String name()
- Overrides:
name in class CellBasis
initNoise
public void initNoise()
- Overrides:
initNoise in class CellBasis
calculateDistanceArray
public double[] calculateDistanceArray(Vertex vertex)
FindNeighbours
protected double FindNeighbours(double x1,
double y1,
double z1,
double xFloor,
double yFloor,
double zFloor,
double[] distances,
int index)
save
public void save(java.io.ObjectOutputStream file)
throws java.io.IOException
- Overrides:
save in class CellBasis
- Throws:
java.io.IOException
load
public void load(java.io.ObjectInputStream file)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Overrides:
load in class CellBasis
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
getDetails
public java.lang.String getDetails()
- Overrides:
getDetails in class CellBasis