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