Improve progress messages, make sure HDMaps that share render only render once

This commit is contained in:
Mike Primm 2011-07-22 01:42:10 -05:00
parent 16e5b4f9b7
commit ba693f0639
12 changed files with 124 additions and 21 deletions

View file

@ -30,6 +30,7 @@ import org.json.simple.JSONObject;
public class DefaultTileRenderer implements MapTileRenderer {
protected static final Color translucent = new Color(0, 0, 0, 0);
protected String name;
protected String prefix;
protected ConfigurationNode configuration;
protected int maximumHeight = 127;
protected ColorScheme colorScheme;
@ -45,7 +46,12 @@ public class DefaultTileRenderer implements MapTileRenderer {
NONE, BIOME, TEMPERATURE, RAINFALL
}
protected BiomeColorOption biomecolored = BiomeColorOption.NONE; /* Use biome for coloring */
@Override
public String getPrefix() {
return prefix;
}
public String getName() {
return name;
}
@ -54,7 +60,8 @@ public class DefaultTileRenderer implements MapTileRenderer {
public DefaultTileRenderer(ConfigurationNode configuration) {
this.configuration = configuration;
name = (String) configuration.get("prefix");
name = configuration.getString("name", null);
prefix = configuration.getString("prefix", name);
Object o = configuration.get("maximumheight");
if (o != null) {
maximumHeight = Integer.parseInt(String.valueOf(o));