preparing for rewrite of tile and item system
This commit is contained in:
@@ -19,6 +19,19 @@ public class NoiseGen {
|
||||
private final double density;
|
||||
|
||||
|
||||
/**
|
||||
* make a new noise generator with a random seed
|
||||
*
|
||||
* @param density noise density (0..1). Lower density means larger "spots".
|
||||
* @param low low bound ("valley")
|
||||
* @param middle middle bound ("surface")
|
||||
* @param high high bound ("hill")
|
||||
*/
|
||||
public NoiseGen(double density, double low, double middle, double high) {
|
||||
this(density, low, middle, high, Double.doubleToLongBits(Math.random()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* make a new noise generator
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user