added default ctor to Tile
This commit is contained in:
parent
b3ecdf2b95
commit
a8a938ee14
@ -1,5 +1,6 @@
|
|||||||
package cicaprojekt;
|
package cicaprojekt;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public abstract class Tile {
|
public abstract class Tile {
|
||||||
@ -10,7 +11,13 @@ public abstract class Tile {
|
|||||||
public Tile(){
|
public Tile(){
|
||||||
Menu.addTab();
|
Menu.addTab();
|
||||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
|
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()");
|
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.Tile()");
|
||||||
Menu.removeTab();
|
Menu.removeTab();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user