Package worldBuilder
Class JsonExporter
- java.lang.Object
-
- worldBuilder.JsonExporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface worldBuilder.Exporter
Exporter.WhichMap
-
-
Constructor Summary
Constructors Constructor Description JsonExporter(int width, int height)
create a new Raw JSON exporter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
erodeMap(double[][] erode)
Up-load the net erosion/deposition for every tileint
export_height()
return the export height (in tiles)int
export_width()
return the export width (in tiles)void
faunaMap(double[][] fauna, java.lang.String[] names)
Up-load the fauna type for every tilevoid
floraMap(double[][] flora, java.lang.String[] names)
Up-load the flora type for every tilevoid
heightMap(double[][] heights)
Up-load the altitude of every tileint
neededInfo()
return list of needed map up-loadsvoid
position(double lat, double lon)
Set the lat/lon of the region being exportedvoid
preview(Exporter.WhichMap chosen, java.awt.Color[] colorMap)
generate a preview of the currently up-loaded exportvoid
rainMap(double[][] rain)
Up-load the annual rainfall for every tilevoid
soilMap(double[][] soil, java.lang.String[] names)
Up-load the soil type for every tilevoid
temps(double meanTemp, double meanSummer, double meanWinter)
Set seasonal temperature range for region being exportedvoid
tileSize(int meters)
Set the size of a single tilevoid
waterMap(double[][] depths)
Up-load the surface-water-depth for every tileboolean
writeFile(java.lang.String filename)
Export the up-loaded information in selected format
-
-
-
Method Detail
-
neededInfo
public int neededInfo()
return list of needed map up-loads- Specified by:
neededInfo
in interfaceExporter
-
export_width
public int export_width()
return the export width (in tiles)- Specified by:
export_width
in interfaceExporter
-
export_height
public int export_height()
return the export height (in tiles)- Specified by:
export_height
in interfaceExporter
-
tileSize
public void tileSize(int meters)
Set the size of a single tile
-
position
public void position(double lat, double lon)
Set the lat/lon of the region being exported
-
temps
public void temps(double meanTemp, double meanSummer, double meanWinter)
Set seasonal temperature range for region being exported
-
heightMap
public void heightMap(double[][] heights)
Up-load the altitude of every tile
-
erodeMap
public void erodeMap(double[][] erode)
Up-load the net erosion/deposition for every tile
-
rainMap
public void rainMap(double[][] rain)
Up-load the annual rainfall for every tile
-
soilMap
public void soilMap(double[][] soil, java.lang.String[] names)
Up-load the soil type for every tile
-
floraMap
public void floraMap(double[][] flora, java.lang.String[] names)
Up-load the flora type for every tile
-
faunaMap
public void faunaMap(double[][] fauna, java.lang.String[] names)
Up-load the fauna type for every tile
-
waterMap
public void waterMap(double[][] depths)
Up-load the surface-water-depth for every tile
-
writeFile
public boolean writeFile(java.lang.String filename)
Export the up-loaded information in selected format
-
preview
public void preview(Exporter.WhichMap chosen, java.awt.Color[] colorMap)
generate a preview of the currently up-loaded export
-
-