From 1c6560a2e8057470dc33f0767d9480148c31eedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 7 Oct 2014 20:45:02 +0200 Subject: Board: add Tile getTileSafe(GridPoint2) --- core/src/ch/asynk/tankontank/engine/Board.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index b74dc87..f18403f 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -132,6 +132,11 @@ public abstract class Board implements Disposable return tiles[idx]; } + public Tile getTileSafe(GridPoint2 coords) + { + return getTileSafe(coords.x, coords.y); + } + public Tile getTileSafe(int col, int row) { int colOffset = ((row + 1) / 2); -- cgit v1.1-2-g2b99