added echos for methods in ZPM and Wall classes
This commit is contained in:
		| @@ -5,6 +5,10 @@ public class Wall extends Tile { | ||||
| 	private Stargate sg; | ||||
| 	 | ||||
| 	public void spawnStargate(Stargate stargate, Direction direction) { | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + | ||||
| 				"]" + ">" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")"); | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + | ||||
| 				"]" + "<" + Menu.tabulator + "Wall.spawnStargate()"); | ||||
| 		if(sg == null) | ||||
| 			sg = stargate; | ||||
| 		else return; | ||||
| @@ -14,8 +18,16 @@ public class Wall extends Tile { | ||||
| 		sg = null; | ||||
| 	} | ||||
| 	 | ||||
| 	public void onEntry() { } | ||||
| 	public void onEntry() | ||||
| 	{ | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onEntry()"); | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onEntry()"); | ||||
| 	} | ||||
|  | ||||
| 	public void onExit() {} | ||||
| 	public void onExit() | ||||
| 	{ | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onExit()"); | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onExit()"); | ||||
| 	} | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -3,6 +3,10 @@ package cicaprojekt; | ||||
| public class ZPM implements cicaprojekt.Pickable | ||||
| { | ||||
|  | ||||
| 	public void pick() {} | ||||
| 	public void pick() | ||||
| 	{ | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "ZPM.pick()"); | ||||
| 		System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "ZPM.pick()"); | ||||
| 	} | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user