added Tile constructor

This commit is contained in:
muskenum 2016-03-29 02:30:14 +02:00 committed by Kjistóf
parent 120c459df9
commit dbdcae7742

View File

@ -6,6 +6,15 @@ public abstract class Tile {
protected Map<Direction, Tile> adjacentTile; protected Map<Direction, Tile> adjacentTile;
private Pickable itemOnTile; private Pickable itemOnTile;
public Tile(){
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
itemOnTile = null;
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
Menu.removeTab();
}
public Tile getAdjacentTile(Direction direction) { public Tile getAdjacentTile(Direction direction) {
Menu.addTab(); Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.getAdjacentTile(" + direction.name() + ")"); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.getAdjacentTile(" + direction.name() + ")");