Example #1
0
 /**
  * Removes a Nation from the Datasource
  *
  * @param nation
  */
 public boolean removeNation(Nation nation) {
   boolean result = nations.remove(nation.getName()) != null;
   for (Town t : towns.values()) if (t.hasNation(nation)) t.removeNation(nation);
   return result;
 }
Example #2
0
 /**
  * Adds a Nation to the Datasource
  *
  * @param nation
  */
 public void addNation(Nation nation) throws Exception {
   nations.put(nation.getName(), nation);
 }