public void saveState(Session s) throws Exception { commerce.saveState(s); s.saveFloat(credits); s.saveObject(ruler); s.saveObjects(missions); s.saveFloat(communitySpirit); s.saveFloat(alertLevel); s.saveFloat(crimeLevel); s.saveFloat(averageMood); s.saveInt(baseRelations.size()); for (Relation r : baseRelations.values()) Relation.saveTo(s, r); paving.saveState(s); dangerMap.saveState(s); intelMap.saveState(s); }