Implemented onExit in Wall
This commit is contained in:
		@@ -11,13 +11,20 @@ public class Wall extends Tile {
 | 
				
			|||||||
			return;
 | 
								return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void clearStargate(){
 | 
						public void clearStargate() {
 | 
				
			||||||
		sg = null;	
 | 
							sg = null;		
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public void onEntry() {
 | 
						public void onEntry() {
 | 
				
			||||||
 | 
							if(sg == null) {
 | 
				
			||||||
 | 
								
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else {
 | 
				
			||||||
 | 
								
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void onExit() {
 | 
						public void onExit() {
 | 
				
			||||||
 | 
							throw new IllegalStateException("Hiba! Te hogy kerültél a falba?");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user