From a8ff7df7059f607bb1866d99f4ea6358e10715d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 28 Mar 2016 23:56:24 +0200 Subject: [PATCH] added echoes to the Scale class --- cicaprojekt/Scale.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cicaprojekt/Scale.java b/cicaprojekt/Scale.java index a7890b9..183499d 100644 --- a/cicaprojekt/Scale.java +++ b/cicaprojekt/Scale.java @@ -4,14 +4,26 @@ public class Scale extends Field { private Gate gateConnected; public void onEntry() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.onEntry()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.onEntry()"); + Menu.removeTab(); gateConnected.setOpen(true); } public void onExit() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.onExit()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.onExit()"); gateConnected.setOpen(false); + Menu.removeTab(); } public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.spawnStarGate(stargate," + direction.name() + ")"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.spawnStarGate()"); adjacentTile.get(direction).spawnStargate(stargate, direction); + Menu.removeTab(); } }