diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:12:10 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:12:10 +0100 |
commit | 3684b17fb5a8c3ccf725526f446ee90cd94a3406 (patch) | |
tree | 277e1cd4f8756aa07e0150cbd95b042e5bae7244 /core/src/ch/asynk/tankontank/game/states | |
parent | 8504bb5c9999983610a6c63d8e8fdb2b00d45825 (diff) | |
download | RustAndDust-3684b17fb5a8c3ccf725526f446ee90cd94a3406.zip RustAndDust-3684b17fb5a8c3ccf725526f446ee90cd94a3406.tar.gz |
Map: add 'Hex getHexAt(float x, float y)'
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateCommon.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateCommon.java b/core/src/ch/asynk/tankontank/game/states/StateCommon.java index 0ff9ba1..91f0609 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateCommon.java +++ b/core/src/ch/asynk/tankontank/game/states/StateCommon.java @@ -77,16 +77,14 @@ public abstract class StateCommon implements State public boolean downInMap(float x, float y) { - // FIXME - downHex = (Hex) map.getTileAt(x, y); + downHex = map.getHexAt(x, y); if (downHex == null) return false; return !downHex.isOffMap(); } public boolean upInMap(float x, float y) { - // FIXME - upHex = (Hex) map.getTileAt(x, y); + upHex = map.getHexAt(x, y); if (upHex == null) return false; return !upHex.isOffMap(); } |