diff options
Diffstat (limited to 'core/src/ch/asynk/zproject/Board.java')
-rw-r--r-- | core/src/ch/asynk/zproject/Board.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/ch/asynk/zproject/Board.java b/core/src/ch/asynk/zproject/Board.java index 22b7e74..b7e20b8 100644 --- a/core/src/ch/asynk/zproject/Board.java +++ b/core/src/ch/asynk/zproject/Board.java @@ -4,7 +4,9 @@ import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.utils.Disposable; -public class Board implements Disposable +import ch.asynk.zproject.engine.Touchable; + +public class Board implements Disposable, Touchable { private final Texture map; @@ -18,6 +20,12 @@ public class Board implements Disposable map.dispose(); } + @Override public boolean touch(float x, float y) + { + ZProject.debug("Board", String.format("touchDown : %f %f", x, y)); + return true; + } + public int getWidth() { return map.getWidth(); |