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 voiderodeMap(double[][] erode)Up-load the net erosion/deposition for every tileintexport_height()return the export height (in tiles)intexport_width()return the export width (in tiles)voidfaunaMap(double[][] fauna, java.lang.String[] names)Up-load the fauna type for every tilevoidfloraMap(double[][] flora, java.lang.String[] names)Up-load the flora type for every tilevoidheightMap(double[][] heights)Up-load the altitude of every tileintneededInfo()return list of needed map up-loadsvoidposition(double lat, double lon)Set the lat/lon of the region being exportedvoidpreview(Exporter.WhichMap chosen, java.awt.Color[] colorMap)generate a preview of the currently up-loaded exportvoidrainMap(double[][] rain)Up-load the annual rainfall for every tilevoidsoilMap(double[][] soil, java.lang.String[] names)Up-load the soil type for every tilevoidtemps(double meanTemp, double meanSummer, double meanWinter)Set seasonal temperature range for region being exportedvoidtileSize(int meters)Set the size of a single tilevoidwaterMap(double[][] depths)Up-load the surface-water-depth for every tilebooleanwriteFile(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:
neededInfoin interfaceExporter
-
export_width
public int export_width()
return the export width (in tiles)- Specified by:
export_widthin interfaceExporter
-
export_height
public int export_height()
return the export height (in tiles)- Specified by:
export_heightin 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
-
-