|
|
@ -1019,7 +1019,15 @@ public class City extends AbstractWorldObject { |
|
|
|
destroyCityThread.setName("deestroyCity:" + this.getName()); |
|
|
|
destroyCityThread.setName("deestroyCity:" + this.getName()); |
|
|
|
destroyCityThread.start(); |
|
|
|
destroyCityThread.start(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static void destroyAllCityAssets(City city){ |
|
|
|
|
|
|
|
if(city == null) |
|
|
|
|
|
|
|
Logger.error("Maintenance Failed To Find City To Destroy"); |
|
|
|
|
|
|
|
for(Building building : city.getParent().zoneBuildingSet){ |
|
|
|
|
|
|
|
building.setRank(-1); |
|
|
|
|
|
|
|
DbManager.removeFromCache(building); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
city.getParent().zoneBuildingSet.clear(); |
|
|
|
|
|
|
|
} |
|
|
|
public final void transfer(AbstractCharacter newOwner) { |
|
|
|
public final void transfer(AbstractCharacter newOwner) { |
|
|
|
|
|
|
|
|
|
|
|
Thread transferCityThread = new Thread(new TransferCityThread(this, newOwner)); |
|
|
|
Thread transferCityThread = new Thread(new TransferCityThread(this, newOwner)); |
|
|
|