fixed the order of output identing in Wall.spawnStargate()
This commit is contained in:
parent
9d5be2a0db
commit
98d888b696
@ -1,19 +1,18 @@
|
||||
package cicaprojekt;
|
||||
|
||||
public class Wall extends Tile {
|
||||
|
||||
private Stargate sg;
|
||||
|
||||
|
||||
public void spawnStargate(Stargate stargate, Direction direction) {
|
||||
Menu.addTab();
|
||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() +
|
||||
"]" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")");
|
||||
Menu.removeTab();
|
||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")");
|
||||
if(sg == null)
|
||||
sg = stargate;
|
||||
else return;
|
||||
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() +
|
||||
"]" + Menu.tabulator + "Wall.spawnStargate()");
|
||||
else
|
||||
return;
|
||||
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.spawnStargate()");
|
||||
Menu.removeTab();
|
||||
}
|
||||
|
||||
public void clearStargate(){
|
||||
@ -25,16 +24,14 @@ public class Wall extends Tile {
|
||||
|
||||
}
|
||||
|
||||
public void onEntry()
|
||||
{
|
||||
public void onEntry() {
|
||||
Menu.addTab();
|
||||
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() {
|
||||
Menu.addTab();
|
||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onExit()");
|
||||
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onExit()");
|
||||
|
Loading…
Reference in New Issue
Block a user