diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 17632ff..7493059 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -570,6 +570,12 @@ public abstract class Board implements Disposable return getHexAt(null, v.x, v.y); } + public GridPoint2 getHexAt(Vector3 v, GridPoint2 hex) + { + if (v == null) return null; + return getHexAt(hex, v.x, v.y); + } + public GridPoint2 getHexAt(GridPoint2 hex, float mx, float my) { if (hex == null) hex = new GridPoint2(); |