summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-01 17:57:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-01 17:57:25 +0100
commitc2cfceffb6da568cf45be36ae810735984f8c0de (patch)
treeda89588dbe791d0b824a02d1b02d51c40c4adea7 /core/src/ch/asynk/tankontank
parent9e010aab502fb36a537060043e7256263f0cf1f6 (diff)
downloadRustAndDust-c2cfceffb6da568cf45be36ae810735984f8c0de.zip
RustAndDust-c2cfceffb6da568cf45be36ae810735984f8c0de.tar.gz
StateBreak: use show/hideMove instead of un/selectHex
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateBreak.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateBreak.java b/core/src/ch/asynk/tankontank/game/states/StateBreak.java
index 55478a8..c70f70c 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateBreak.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateBreak.java
@@ -23,10 +23,10 @@ public class StateBreak extends StateCommon
public void leave(StateType nextState)
{
map.hideBreakPawns();
- map.unselectHex(to);
+ map.hideMove(to);
map.hideDirections(to);
map.hideOrientation(to);
- if (activeUnit != null) map.unselectHex(activeUnit.getHex());
+ if (activeUnit != null) map.hideMove(activeUnit.getHex());
}
@Override
@@ -41,8 +41,8 @@ public class StateBreak extends StateCommon
Unit unit = upHex.getUnit();
if (map.breakPawns.contains(unit)) {
activeUnit = unit;
- map.selectHex(upHex);
- map.selectHex(to);
+ map.showMove(upHex);
+ map.showMove(to);
map.showDirections(to);
map.hideBreakPawns();
}