From 0bd209e1f51b941e5153fbf01d9c3ff3697a0490 Mon Sep 17 00:00:00 2001 From: muskenum Date: Tue, 29 Mar 2016 02:00:53 +0200 Subject: [PATCH] fixed echoes in the Field class --- cicaprojekt/Field.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cicaprojekt/Field.java b/cicaprojekt/Field.java index d0712a2..4ba8484 100644 --- a/cicaprojekt/Field.java +++ b/cicaprojekt/Field.java @@ -4,11 +4,25 @@ public class Field extends cicaprojekt.Tile { @Override public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.spawnStargate(Stargate stargate, Direction direction)"); adjacentTile.get(direction).spawnStargate(stargate, direction); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.spawnStargate(Stargate stargate, Direction direction)"); + Menu.removeTab(); } - public void onEntry() {} + public void onEntry() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.onEntry()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.onEntry()"); + Menu.removeTab(); + } - public void onExit() {} + public void onExit() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.onExit()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.onExit()"); + Menu.removeTab(); + } }