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