fixed echos in ZPM and Wall classes

This commit is contained in:
Kjistóf 2016-03-28 22:59:16 +02:00
parent 1c5391422a
commit 3262a0fa36
2 changed files with 18 additions and 10 deletions

View File

@ -5,10 +5,12 @@ public class Wall extends Tile {
private Stargate sg; private Stargate sg;
public void spawnStargate(Stargate stargate, Direction direction) { public void spawnStargate(Stargate stargate, Direction direction) {
System.out.println("[" + ":" + this.getClass().getSimpleName() + Menu.addTab();
"]" + ">" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")"); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() +
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")");
"]" + "<" + Menu.tabulator + "Wall.spawnStargate()"); System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() +
"]" + Menu.tabulator + "Wall.spawnStargate()");
Menu.removeTab();
if(sg == null) if(sg == null)
sg = stargate; sg = stargate;
else return; else return;
@ -20,14 +22,18 @@ public class Wall extends Tile {
public void onEntry() public void onEntry()
{ {
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onEntry()"); Menu.addTab();
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onEntry()"); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onEntry()");
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onEntry()");
Menu.removeTab();
} }
public void onExit() public void onExit()
{ {
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onExit()"); Menu.addTab();
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onExit()"); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onExit()");
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onExit()");
Menu.removeTab();
} }
} }

View File

@ -5,8 +5,10 @@ public class ZPM implements cicaprojekt.Pickable
public void pick() public void pick()
{ {
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "ZPM.pick()"); Menu.addTab();
System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "ZPM.pick()"); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "ZPM.pick()");
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "ZPM.pick()");
Menu.removeTab();
} }
} }