Section rivsection = registry.getRuleset(ruleset).getSection("rivers");
minbigriverwaterflow = rivsection.getField("minbigriverwaterflow").getIntValue();
}
private void dumpConfiguration() {
Messages messages = Messages.getMessages();
messages.info("MapGenerator", "GenMapGenConf", "MapGenerator-configuration");
messages.info("MapGenerator", "GenMapGenConf", "width = " + width);
messages.info("MapGenerator", "GenMapGenConf", "height = " + height);
messages.info("MapGenerator", "GenMapGenConf", "flatearth = " + flatearth);
String mapType;
if(maptype == FLAT) {
mapType = "flat";
} else if (maptype == ISOMETRIC) {
mapType = "isometric";
} else {
mapType = "not-known";
}
messages.info("MapGenerator", "GenMapGenConf", "map-type = " + mapType);
messages.info("MapGenerator", "GenMapGenConf", "Generators:");
if (heightGenerator instanceof PlateHeightGenerator) {
messages.info("MapGenerator", "GenMapGenConf",
"---> HeightGenerator: PlateHeightGenerator");
} else {
messages.info("MapGenerator", "GenMapGenConf",
"---> NO HEIGHTGENERATOR!!!");
}
if(vegetationGenerator instanceof ClimateGenerator) {
messages.info("MapGenerator", "GenMapGenConf",
"---> VegetationGenerator: ClimateGenerator");
} else {
messages.info("MapGenerator", "GenMapGenConf",
"---> NO VEGETATIONGENERATOR!!!");
}
if(riverGenerator instanceof MWFCRiverGenerator) {
messages.info("MapGenerator", "GenMapGenConf",
"---> RiverGenerator: MWFCRiverGenerator");
} else {
messages.info("MapGenerator", "GenMapGenConf",
"---> NO RIVERGENERATOR!!!");
}
messages.info("MapGenerator", "GenMapGenConf",
"minbigriverwaterflow = " + minbigriverwaterflow);
}