// game.nextNation();
}
/** Adds a city for the given Nation somewhere on land */
private void addACity(Nation nation) {
MapData mapData = Game.getMapData();
FieldReader fieldReader = Game.getGame().getFieldReader();
CityReader cityReader = Game.getGame().getCityReader();
Random random = new Random();
int x = 0, y = 0;
for (int n = 0; n < 100; n++) {
x = random.nextInt(mapData.getArrayWidth());
y = random.nextInt(mapData.getArrayHeight());
if (mapData.isArrayCoordOnMap(x, y)
&& civquest.map.Field.isLand(fieldReader.getHeightLevel(new Coordinate(x, y)))
&& cityReader.getCityID(new Coordinate(x, y)) == null) {
break;
}
}
if (!mapData.isArrayCoordOnMap(x, y)) {
Messages messages = Messages.getMessages();
messages.info("CivQuest", "GUITestData",
"addACity: No suitable place for a city found!");
return;
}