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(); + } }