From 50456d092a9ef0186a3b03f09c2b0adc9ca9ef11 Mon Sep 17 00:00:00 2001 From: hegedusfanni Date: Tue, 29 Mar 2016 02:02:28 +0200 Subject: [PATCH] added echoes to the Stargate class --- cicaprojekt/Stargate.java | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/cicaprojekt/Stargate.java b/cicaprojekt/Stargate.java index 5fa2a24..da31e89 100644 --- a/cicaprojekt/Stargate.java +++ b/cicaprojekt/Stargate.java @@ -10,19 +10,41 @@ public class Stargate { private cicaprojekt.Wall currentWall; - public static void init() {} + public static void init() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()"); + System.out.println("<" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()"); + Menu.removeTab(); + } public cicaprojekt.Wall getCurrentWall() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.getCurrentWall()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.getCurrentWall()"); + Menu.removeTab(); return currentWall; } public void setCurrentWall(cicaprojekt.Wall wall) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.setCurrentWall(" + wall.name() + ")"); currentWall = wall; + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.setCurrentWall(" + wall.name() + ")"); + Menu.removeTab(); } public boolean isOpen() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.isOpen()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.isOpen()"); + Menu.removeTab(); return isSpawned; } - public void teleport(Direction incomingDirection) {} + public void teleport(Direction incomingDirection) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.teleport(" + incomingDirection.name() + ")"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Stargate.teleport(" + incomingDirection.name() + ")"); + Menu.removeTab(); + } }