From bc314d466a940bdbe292ca0646b3dc51be41791b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 28 Mar 2016 22:00:02 +0200 Subject: [PATCH] added echos for methods in ZPM and Wall classes --- cicaprojekt/Wall.java | 16 ++++++++++++++-- cicaprojekt/ZPM.java | 6 +++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index a46f031..04c3692 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -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()"); + } } diff --git a/cicaprojekt/ZPM.java b/cicaprojekt/ZPM.java index f0fe9d5..cbad680 100644 --- a/cicaprojekt/ZPM.java +++ b/cicaprojekt/ZPM.java @@ -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()"); + } }