Added coords and toString to Tile
This commit is contained in:
parent
7b531fecdd
commit
c577bb1471
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user