summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-03 14:28:56 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-03 14:28:56 +0100
commit4363785ebb57e7c56b41ba40de09b83a0fbd050d (patch)
tree7f3ca29880d44ec3277f47084697bcc974c6fdd3 /core/src/ch/asynk/tankontank
parentd73d51626589a3e50916949ce6e6b020708e1680 (diff)
downloadRustAndDust-4363785ebb57e7c56b41ba40de09b83a0fbd050d.zip
RustAndDust-4363785ebb57e7c56b41ba40de09b83a0fbd050d.tar.gz
Hud: use turns click instead of flag click to end turn
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 42572ff..0ec25e3 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -216,8 +216,9 @@ public class Hud implements Disposable
public boolean touchDown(float x, float y)
{
- if (flag.contains(x,y)) return true;
- if (reinforcement.contains(x,y)) return true;
+ if (reinforcement.contains(x,y) || unitDock.contains(x, y)) return true;
+ else unitDock.hide();
+ if (turns.contains(x,y)) return true;
if (!actionsBg.contains(x,y)) return false;
btn = null;
@@ -246,7 +247,7 @@ public class Hud implements Disposable
if (btn != null)
btn.setOn();
- if (flag.contains(x,y)) {
+ if (turns.contains(x,y)) {
ctrl.endPlayerTurn();
return true;
}