@Beta public class MetsaMapFactory extends java.lang.Object
WorldMapGenerator
. WorldMapGenerator does tend
to produce much higher quality in its maps, however, due to calculating heat and moisture levels as well as height,
then using those to build blending biomes.Modifier and Type | Field and Description |
---|---|
static double |
BEACH_LEVEL |
static double |
DEEP_SEA_LEVEL |
static double |
MOUNTAIN_LEVEL |
static double |
PLAINS_LEVEL |
static double |
SEA_LEVEL |
static double |
SNOW_LEVEL |
Constructor and Description |
---|
MetsaMapFactory() |
MetsaMapFactory(int width,
int height) |
MetsaMapFactory(int width,
int height,
long rngSeed) |
MetsaMapFactory(int width,
int height,
StatefulRNG rng) |
Modifier and Type | Method and Description |
---|---|
Coord |
closestCity(Coord point)
Finds and returns the closest point containing a city to the given point.
|
java.util.List<Coord> |
getCities() |
int |
getHeight() |
double[][] |
getHeightMap() |
double |
getMaxPeak() |
int |
getShadow(int x,
int y,
double[][] map) |
int |
getWidth() |
int[][] |
makeBiomeMap() |
double[][] |
makeHeightMap() |
int[][] |
makeNationMap() |
double[][] |
makeWeightedMap() |
void |
regenerateHeightMap() |
void |
regenerateHeightMap(int width,
int height) |
public static final double SEA_LEVEL
public static final double BEACH_LEVEL
public static final double PLAINS_LEVEL
public static final double MOUNTAIN_LEVEL
public static final double SNOW_LEVEL
public static final double DEEP_SEA_LEVEL
public MetsaMapFactory()
public MetsaMapFactory(int width, int height)
public MetsaMapFactory(int width, int height, long rngSeed)
public MetsaMapFactory(int width, int height, StatefulRNG rng)
public int getShadow(int x, int y, double[][] map)
public Coord closestCity(Coord point)
point
- public double[][] makeHeightMap()
public void regenerateHeightMap()
public void regenerateHeightMap(int width, int height)
public int[][] makeBiomeMap()
public int[][] makeNationMap()
public double[][] makeWeightedMap()
public java.util.List<Coord> getCities()
public double getMaxPeak()
public double[][] getHeightMap()
public int getHeight()
public int getWidth()
Copyright © Eben Howard 2012–2022. All rights reserved.