summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
index 5ef6c0b..4653518 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
@@ -19,6 +19,9 @@ public abstract class GameStateCommon implements GameState
protected static GridPoint2 downHex = new GridPoint2(-1, -1);
protected static GridPoint2 upHex = new GridPoint2(-1, -1);
+ protected static GridPoint2 from = new GridPoint2(-1, -1);
+ protected static GridPoint2 to = new GridPoint2(-1, -1);
+
protected GameStateCommon()
{
}
@@ -67,6 +70,11 @@ public abstract class GameStateCommon implements GameState
protected void unselectHex()
{
+ unselectHex(hex);
+ }
+
+ protected void unselectHex(GridPoint2 hex)
+ {
map.enableOverlayOn(hex, Hex.BLUE, false);
}