summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java5
1 files changed, 5 insertions, 0 deletions
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);