Added coords and toString to Tile

This commit is contained in:
Bokros Bálint 2016-04-25 19:14:08 +02:00
parent 7b531fecdd
commit c577bb1471

View File

@ -8,6 +8,7 @@ public abstract class Tile {
protected Map<Direction, Tile> adjacentTile;
protected ZPM zpmOnTile;
protected Stack<Box> boxStack;
protected int x, y;
public Tile() {
@ -49,4 +50,9 @@ public abstract class Tile {
return null;
return boxStack.pop();
}
@Override
public String toString() {
return String.format("%d, %d", x, y);
}
}