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