added echoes to the Scale class

This commit is contained in:
Kjistóf 2016-03-28 23:56:24 +02:00
parent 2afe3cda15
commit a8ff7df705
1 changed files with 12 additions and 0 deletions

View File

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