added echoes to the Gap class
This commit is contained in:
parent
a8ff7df705
commit
ab26f85f0d
@ -1,13 +1,30 @@
|
|||||||
package cicaprojekt;
|
package cicaprojekt;
|
||||||
|
|
||||||
|
import com.sun.xml.internal.rngom.parse.host.Base;
|
||||||
|
|
||||||
public class Gap extends cicaprojekt.Tile
|
public class Gap extends cicaprojekt.Tile
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
|
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
|
||||||
|
Menu.addTab();
|
||||||
|
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.spawnStargate(stargate" + direction.name() + ")");
|
||||||
adjacentTile.get(direction).spawnStargate(stargate, direction);
|
adjacentTile.get(direction).spawnStargate(stargate, direction);
|
||||||
|
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.spawnStargate()");
|
||||||
|
Menu.removeTab();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onEntry() {}
|
public void onEntry() {
|
||||||
|
Menu.addTab();
|
||||||
public void onExit() {}
|
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onEntry()");
|
||||||
|
this.removeItemFromTile().destroy();
|
||||||
|
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onEntry()");
|
||||||
|
Menu.removeTab();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onExit() {
|
||||||
|
Menu.addTab();
|
||||||
|
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onExit()");
|
||||||
|
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gap.onExit()");
|
||||||
|
Menu.removeTab();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user