diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/GameCtrl.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameCtrl.java b/core/src/ch/asynk/tankontank/game/GameCtrl.java index c22629e..d662f0a 100644 --- a/core/src/ch/asynk/tankontank/game/GameCtrl.java +++ b/core/src/ch/asynk/tankontank/game/GameCtrl.java @@ -53,9 +53,9 @@ public class GameCtrl implements Disposable factory.dispose(); } - public boolean inAnimation() + public boolean mayProcessTouch() { - return (state == animationState); + return (state != animationState); } public void animationDone() diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 26b986f..e781305 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -147,7 +147,7 @@ public class Hud implements Disposable public boolean touchDown(float x, float y) { - if (ctrl.inAnimation() || !rect.contains(x,y)) return false; + if (!rect.contains(x,y)) return false; if (cancelAct.hit(x, y)) { ctrl.abort(); @@ -159,7 +159,7 @@ public class Hud implements Disposable public boolean touchUp(float x, float y) { - if (ctrl.inAnimation() || !rect.contains(x,y)) return false; + if (!rect.contains(x,y)) return false; if (moveAct.hit(x, y)) { moveAct.setOn(); |