@Beta public class MetsaMapFactory extends Object
Constructor and Description |
---|
MetsaMapFactory() |
MetsaMapFactory(int width,
int height) |
MetsaMapFactory(int width,
int height,
long rngSeed) |
Modifier and Type | Method and Description |
---|---|
Coord |
closestCity(Coord point)
Finds and returns the closest point containing a city to the given point.
|
List<Coord> |
getCities() |
double |
getMaxPeak() |
int |
getShadow(int x,
int y,
double[][] map) |
int[][] |
makeBiomeMap(double[][] map) |
double[][] |
makeHeightMap() |
int[][] |
makeNationMap(double[][] map) |
double[][] |
makeWeightedMap(double[][] map) |
public MetsaMapFactory()
public MetsaMapFactory(int width, int height)
public MetsaMapFactory(int width, int height, long rngSeed)
public int getShadow(int x, int y, double[][] map)
public Coord closestCity(Coord point)
point
- public double[][] makeHeightMap()
public int[][] makeBiomeMap(double[][] map)
public int[][] makeNationMap(double[][] map)
public double[][] makeWeightedMap(double[][] map)
public double getMaxPeak()
Copyright © 2012–2016. All rights reserved.