diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 15:12:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 15:12:15 +0200 |
commit | 0a83731af59a7d89eafefe11970aabd9c73b2daa (patch) | |
tree | 4a3645e738de7e45cb1bca1340930967c32bcfa2 /core/src/ch/asynk/tankontank/game/GameStateNone.java | |
parent | 9c1b4170e5fa0a9899f6b6b7d370270e47166640 (diff) | |
download | RustAndDust-0a83731af59a7d89eafefe11970aabd9c73b2daa.zip RustAndDust-0a83731af59a7d89eafefe11970aabd9c73b2daa.tar.gz |
GameSates*: cleanup
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/GameStateNone.java')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/GameStateNone.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameStateNone.java b/core/src/ch/asynk/tankontank/game/GameStateNone.java index 1d7789a..a66f30b 100644 --- a/core/src/ch/asynk/tankontank/game/GameStateNone.java +++ b/core/src/ch/asynk/tankontank/game/GameStateNone.java @@ -23,19 +23,18 @@ public class GameStateNone extends GameStateCommon unselectHex(); setHex(); selectHex(); - if (hexHasUnit()) { - setPawn(); - map.showPossibleActions(pawn, hex, true); - } else { - map.showPossibleActions(pawn, hex, false); - } } } @Override public void touchUp() { - if (!hexHasUnit()) + if (hexHasUnit()) { + setPawn(); + map.showPossibleActions(pawn, hex, true); + } else { + map.showPossibleActions(pawn, hex, false); unselectHex(); + } } } |