From c577bb147140f8985ddf9163fe77567d111d2a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Mon, 25 Apr 2016 19:14:08 +0200 Subject: [PATCH] Added coords and toString to Tile --- cicaprojekt/Tile.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cicaprojekt/Tile.java b/cicaprojekt/Tile.java index 572000a..d6376d3 100644 --- a/cicaprojekt/Tile.java +++ b/cicaprojekt/Tile.java @@ -8,6 +8,7 @@ public abstract class Tile { protected Map adjacentTile; protected ZPM zpmOnTile; protected Stack 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); + } }