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