summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:52:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:52:39 +0200
commit029673debb134f8e79ab5c070025bd1489ce0d51 (patch)
tree832e38cfbd908ee5748966dafaf3a539119d0e40 /core/src/ch/asynk/tankontank
parent7b637ded45d268cdbcc3331c3565ee035ec93bb6 (diff)
downloadRustAndDust-029673debb134f8e79ab5c070025bd1489ce0d51.zip
RustAndDust-029673debb134f8e79ab5c070025bd1489ce0d51.tar.gz
GameStateCommon: owns 'to', 'from', add unselectHex(GridPoint2)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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);
}