diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-04 15:27:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-04 15:27:42 +0100 |
commit | 2823518ed1417dd0a7df5de3737c062cb7412673 (patch) | |
tree | baef17501f2760a8c94a8700142bb81309fdea9e /core/src | |
parent | 98debdd8c072db07f906b1d3c80de9aa8e6bc644 (diff) | |
download | RustAndDust-2823518ed1417dd0a7df5de3737c062cb7412673.zip RustAndDust-2823518ed1417dd0a7df5de3737c062cb7412673.tar.gz |
Hud: import State.StateType
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 1f7d591..5282efb 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -10,6 +10,7 @@ import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.math.Rectangle; import ch.asynk.tankontank.engine.gfx.Image; +import ch.asynk.tankontank.game.State.StateType; import ch.asynk.tankontank.game.hud.Msg; import ch.asynk.tankontank.game.hud.Bg; import ch.asynk.tankontank.game.hud.Button; @@ -241,13 +242,13 @@ public class Hud implements Disposable boolean setOn = true; if (actionsBg.hit(x, y)) { if ((btn == moveBtn) && moveBtn.hit(x, y)) - ctrl.setState(State.StateType.MOVE); + ctrl.setState(StateType.MOVE); else if ((btn == rotateBtn) && rotateBtn.hit(x, y)) - ctrl.setState(State.StateType.ROTATE); + ctrl.setState(StateType.ROTATE); else if ((btn == promoteBtn) && promoteBtn.hit(x, y)) - ctrl.setState(State.StateType.PROMOTE); + ctrl.setState(StateType.PROMOTE); else if ((btn == attackBtn) && attackBtn.hit(x, y)) - ctrl.setState(State.StateType.ATTACK); + ctrl.setState(StateType.ATTACK); else if ((btn == checkBtn) && checkBtn.hit(x, y)) ctrl.done(); else if ((btn == cancelBtn) && cancelBtn.hit(x, y)) { |