From ab26f85f0d866edc92e960700552d0710086d998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Tue, 29 Mar 2016 00:10:55 +0200 Subject: [PATCH] added echoes to the Gap class --- cicaprojekt/Gap.java | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/cicaprojekt/Gap.java b/cicaprojekt/Gap.java index bf2c1de..df631e3 100644 --- a/cicaprojekt/Gap.java +++ b/cicaprojekt/Gap.java @@ -1,13 +1,30 @@ package cicaprojekt; +import com.sun.xml.internal.rngom.parse.host.Base; + public class Gap extends cicaprojekt.Tile { @Override public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.spawnStargate(stargate" + direction.name() + ")"); adjacentTile.get(direction).spawnStargate(stargate, direction); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.spawnStargate()"); + Menu.removeTab(); } - public void onEntry() {} + public void onEntry() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onEntry()"); + this.removeItemFromTile().destroy(); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onEntry()"); + Menu.removeTab(); + } - public void onExit() {} + public void onExit() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onExit()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onExit()"); + Menu.removeTab(); + } }