settlement.getPlayer().addMessage(message);
return;
}
settlement.setPopulation(settlement.getPopulation() - cityFoundingPopulation);
}
Unit newUnit = new Unit(realm);
newUnit.setType((UnitType) currentProduction);
newUnit.setCoordinate(settlement.getCoordinate());
newUnit.setPlayer(settlement.getPlayer());
Executor.getInstance().execute(new AddUnitCommand(settlement.getPlayer(), newUnit));
if ((settlement.getPlayer().getActiveUnit() == null)) {
Executor.getInstance().execute(new SetActiveUnitCommand(settlement.getPlayer(), newUnit));
}
if (!settlement.isContiuousProduction()) {