| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -41,6 +41,7 @@ import java.util.HashSet; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.Iterator; | 
					 | 
					 | 
					 | 
					import java.util.Iterator; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.concurrent.ConcurrentHashMap; | 
					 | 
					 | 
					 | 
					import java.util.concurrent.ConcurrentHashMap; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.concurrent.ThreadLocalRandom; | 
					 | 
					 | 
					 | 
					import java.util.concurrent.ThreadLocalRandom; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicBoolean; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.concurrent.locks.ReentrantReadWriteLock; | 
					 | 
					 | 
					 | 
					import java.util.concurrent.locks.ReentrantReadWriteLock; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					public class City extends AbstractWorldObject { | 
					 | 
					 | 
					 | 
					public class City extends AbstractWorldObject { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -80,6 +81,7 @@ public class City extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private String hash; | 
					 | 
					 | 
					 | 
					    private String hash; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public Warehouse warehouse; | 
					 | 
					 | 
					 | 
					    public Warehouse warehouse; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public Realm realm; | 
					 | 
					 | 
					 | 
					    public Realm realm; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    public AtomicBoolean destroyed = new AtomicBoolean(false); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    /** | 
					 | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * ResultSet Constructor | 
					 | 
					 | 
					 | 
					     * ResultSet Constructor | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1104,7 +1106,7 @@ public class City extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Thread destroyCityThread = new Thread(new DestroyCityThread(this)); | 
					 | 
					 | 
					 | 
					        Thread destroyCityThread = new Thread(new DestroyCityThread(this)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        destroyCityThread.setName("destroyCity:" + this.getName()); | 
					 | 
					 | 
					 | 
					        destroyCityThread.setName("destroyCity: " + this.getName()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        destroyCityThread.start(); | 
					 | 
					 | 
					 | 
					        destroyCityThread.start(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -1112,7 +1114,7 @@ public class City extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Thread transferCityThread = new Thread(new TransferCityThread(this, newOwner)); | 
					 | 
					 | 
					 | 
					        Thread transferCityThread = new Thread(new TransferCityThread(this, newOwner)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        transferCityThread.setName("TransferCity:" + this.getName()); | 
					 | 
					 | 
					 | 
					        transferCityThread.setName("TransferCity: " + this.getName()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        transferCityThread.start(); | 
					 | 
					 | 
					 | 
					        transferCityThread.start(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |