diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-13 09:59:59 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-13 09:59:59 +0200 |
commit | 7d0248222fec287ba6be9a6e63bc82ab12b71085 (patch) | |
tree | 1f5f6467abb71aa4c4575fea524f8eb0a6561cfd /core/src | |
parent | 33772e0d572f7efb99731257f84b295d33b01dfd (diff) | |
download | RustAndDust-7d0248222fec287ba6be9a6e63bc82ab12b71085.zip RustAndDust-7d0248222fec287ba6be9a6e63bc82ab12b71085.tar.gz |
StateCommon: add showTarget()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateCommon.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateCommon.java b/core/src/ch/asynk/tankontank/game/states/StateCommon.java index d775472..fbf0779 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateCommon.java +++ b/core/src/ch/asynk/tankontank/game/states/StateCommon.java @@ -127,6 +127,11 @@ public abstract class StateCommon implements State map.enableOverlayOn(hex, Hex.ASSIST, enable); } + protected void showTarget(GridPoint2 hex, boolean enable) + { + map.enableOverlayOn(hex, Hex.TARGET, enable); + } + protected boolean sameHexes(GridPoint2 a, GridPoint2 b) { return ((a.x == b.x) && (a.y == b.y)); |