public class OrganicMapGenerator extends Object
Modifier and Type | Field and Description |
---|---|
int[][] |
environment |
protected int |
height |
char[][] |
map |
double |
noiseMax |
double |
noiseMin |
RNG |
rng |
protected int |
width |
Constructor and Description |
---|
OrganicMapGenerator() |
OrganicMapGenerator(double noiseMin,
double noiseMax,
int width,
int height,
RNG rng) |
OrganicMapGenerator(int width,
int height) |
OrganicMapGenerator(int width,
int height,
RNG rng) |
Modifier and Type | Method and Description |
---|---|
char[][] |
generate()
Generate a map as a 2D char array using the width and height specified in the constructor.
|
int[][] |
getEnvironment()
Gets a 2D array of int constants, each representing a type of environment corresponding to a static field of
MixedGenerator.
|
public char[][] map
public int[][] environment
protected int width
protected int height
public double noiseMin
public double noiseMax
public OrganicMapGenerator()
public OrganicMapGenerator(int width, int height)
public OrganicMapGenerator(int width, int height, RNG rng)
public OrganicMapGenerator(double noiseMin, double noiseMax, int width, int height, RNG rng)
public char[][] generate()
public int[][] getEnvironment()
Copyright © 2012–2016. All rights reserved.