}
} while (!line.matches("@"));
God.getInstance().createGUIController();
for (int i = 0; i < EnvironmentConstants.N_WORLDS_DEF; i++) {
LocalWorldParams params = new LocalWorldParams();
do {
line = scanner.nextLine();
if (!line.matches("#")) {
String command = line.split(":")[0];
String value = line.split(":")[1];
if (command.equals("idWorld")) {
params.setIdWorld(Short.parseShort(value));
} else if (command.equals("initNAgentsPainter")) {
params.setInitNAgentsPainter(Short.parseShort(value));
} else if (command.equals("initNAgentsTracer")) {
params.setInitNAgentsTracer(Short.parseShort(value));
} else if (command.equals("externalAgent")) {
params.setExternalAgent(Boolean.parseBoolean(value));
} else if (command.equals("mapFile")) {
params.setMapFile(new File(value));
} else if (command.equals("cols")) {
params.setCols(Short.parseShort(value));
} else if (command.equals("rows")) {
params.setRows(Short.parseShort(value));
} else if (command.equals("colorInUse")) {
params.setColorInUse(Short.parseShort(value));
} else if (command.equals("duplication")) {
params.setDuplication(Boolean.parseBoolean(value));
} else if (command.equals("hunger")) {
params.setHunger(Boolean.parseBoolean(value));
} else if (command.equals("tracerMovement")) {
params.setMovement(Short.parseShort(value));
}
}
} while (!line.matches("#"));
God.getInstance().createWorld(params);
God.getInstance().createInitialAgents(params);