summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 09:59:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 09:59:59 +0200
commit7d0248222fec287ba6be9a6e63bc82ab12b71085 (patch)
tree1f5f6467abb71aa4c4575fea524f8eb0a6561cfd /core/src/ch/asynk
parent33772e0d572f7efb99731257f84b295d33b01dfd (diff)
downloadRustAndDust-7d0248222fec287ba6be9a6e63bc82ab12b71085.zip
RustAndDust-7d0248222fec287ba6be9a6e63bc82ab12b71085.tar.gz
StateCommon: add showTarget()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateCommon.java5
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));