Esempio n. 1
0
 public void remove(Town town) {
   for (TownBlock townBlock : town.getTownBlocks()) remove(townBlock.getWorldCoord());
   warringTowns.remove(town);
   try {
     if (!townsLeft(town.getNation())) eliminate(town.getNation());
   } catch (NotRegisteredException e) {
   }
 }
Esempio n. 2
0
  public void remove(Town attacker, Town town) throws NotRegisteredException {
    townScored(attacker, TownySettings.getWarPointsForTown());

    for (TownBlock townBlock : town.getTownBlocks()) remove(townBlock.getWorldCoord());
    warringTowns.remove(town);
    try {
      if (!townsLeft(town.getNation())) eliminate(town.getNation());
    } catch (NotRegisteredException e) {
    }
  }
Esempio n. 3
0
 public void checkNation(Nation nation) {
   if (countActiveTowns(nation) == 0) eliminate(nation);
 }
Esempio n. 4
0
 public void checkTown(Town town) {
   if (countActiveWarBlocks(town) == 0) eliminate(town);
 }