added default ctor to Tile

This commit is contained in:
Bokros Bálint 2016-03-29 10:47:43 +02:00 committed by Kjistóf
parent b3ecdf2b95
commit a8a938ee14

View File

@ -1,5 +1,6 @@
package cicaprojekt;
import java.util.HashMap;
import java.util.Map;
public abstract class Tile {
@ -10,7 +11,13 @@ public abstract class Tile {
public Tile(){
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
itemOnTile = null;
adjacentTile = new HashMap<Direction, Tile>();
adjacentTile.put(Direction.NORTH, Field.testField);
adjacentTile.put(Direction.EAST, Field.testField);
adjacentTile.put(Direction.SOUTH, Field.testField);
adjacentTile.put(Direction.WEST, Field.testField);
itemOnTile = new Box();
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
Menu.removeTab();
}