Example #1
0
 public int countActiveTowns(Nation nation) {
   int n = 0;
   for (Town town : nation.getTowns()) if (warringTowns.contains(town)) n++;
   return n;
 }
Example #2
0
 public void nationLeave(Nation nation) {
   remove(nation);
   for (Town town : nation.getTowns()) remove(town);
   TownyMessaging.sendGlobalMessage(TownySettings.getWarTimeForfeitMsg(nation.getName()));
   checkEnd();
 }
Example #3
0
 public boolean townsLeft(Nation nation) {
   return warringTowns.containsAll(nation.getTowns());
 }
Example #4
0
 public void add(Nation nation) {
   for (Town town : nation.getTowns()) add(town);
   warringNations.add(nation);
 }