= loadedData.getLoadedDataHashSet("mapObjects");
for (LoadedData moLoadedData : moLoadedDataSet) {
String modelName
= moLoadedData.getString(MapObject.MODEL_NAME_KEY);
MapObject newMapObject = null;
// hack to make it run - TODO: think about a more elegant way of
// mapping model names to the appropriate constructor call
if (modelName.equals("units_musketeer")) {
newMapObject = new Musketeer(moLoadedData, step);
} else if (modelName.equals("city")) {
newMapObject = new City(moLoadedData, step);
}
mapObjects.add(newMapObject);
newMapObject.setField(this);
}
}