added echos for methods in ZPM and Wall classes

This commit is contained in:
Kjistóf 2016-03-28 22:00:02 +02:00
parent 7d45ab6b79
commit bc314d466a
2 changed files with 19 additions and 3 deletions

View File

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

View File

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