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