Added coords and toString to Tile
This commit is contained in:
		@@ -8,6 +8,7 @@ public abstract class Tile {
 | 
				
			|||||||
    protected Map<Direction, Tile> adjacentTile;
 | 
					    protected Map<Direction, Tile> adjacentTile;
 | 
				
			||||||
    protected ZPM zpmOnTile;
 | 
					    protected ZPM zpmOnTile;
 | 
				
			||||||
    protected Stack<Box> boxStack;
 | 
					    protected Stack<Box> boxStack;
 | 
				
			||||||
 | 
					    protected int x, y;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Tile() {
 | 
					    public Tile() {
 | 
				
			||||||
@@ -49,4 +50,9 @@ public abstract class Tile {
 | 
				
			|||||||
            return null;
 | 
					            return null;
 | 
				
			||||||
        return boxStack.pop();
 | 
					        return boxStack.pop();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public String toString() {
 | 
				
			||||||
 | 
					        return String.format("%d, %d", x, y);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user