Exemplo 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) {
   }
 }
Exemplo 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) {
    }
  }
Exemplo n.º 3
0
 public void checkNation(Nation nation) {
   if (countActiveTowns(nation) == 0) eliminate(nation);
 }
Exemplo n.º 4
0
 public void checkTown(Town town) {
   if (countActiveWarBlocks(town) == 0) eliminate(town);
 }