Gap - finished
This commit is contained in:
		| @@ -1,16 +1,26 @@ | |||||||
| package cicaprojekt; | package cicaprojekt; | ||||||
|  |  | ||||||
| public class Gap extends Tile | public class Gap extends cicaprojekt.Tile | ||||||
| { | { | ||||||
|  | 	public Gap(){ | ||||||
|  | 		super(); | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
| 	@Override | 	@Override | ||||||
| 	public void spawnStargate(Stargate stargate, Direction direction) { | 	public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { | ||||||
| 		adjacentTile.get(direction).spawnStargate(stargate, direction); | 		adjacentTile.get(direction).spawnStargate(stargate, direction); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public void onEntry() { | 	public void onEntry(PlayerBase playerBase) { | ||||||
| 		this.removeItemFromTile().destroy(); | 		playerBase.destroy(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public void onExit() { | 	public void onExit(PlayerBase playerBase) throws IllegalStateException { | ||||||
|  | 		throw new IllegalStateException("Hiba! A szakadékból nem jut ki semmi!"); | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	@Override | ||||||
|  | 	public void putABox(Box box) { | ||||||
|  | 		box.destroy(); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user