diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 15:21:26 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 15:21:26 +0100 |
commit | 9b22a7b6d065ffd24222a8aebd85a879ee0ecb1d (patch) | |
tree | 36b87e4c5e7306b74d81435e854aa22fbeb4c6c0 | |
parent | 146e62a47257d57f3ab14b92d065a16d571e220f (diff) | |
download | RustAndDust-9b22a7b6d065ffd24222a8aebd85a879ee0ecb1d.zip RustAndDust-9b22a7b6d065ffd24222a8aebd85a879ee0ecb1d.tar.gz |
Hud: add notifyDeploymentDone(), notifyEndOfTurn() -> notifyNoMoreAP()
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index dabe3fa..f40690e 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -169,7 +169,7 @@ public class Ctrl implements Disposable hud.update(); } if (player.apExhausted()) - hud.notifyEndOfTurn(); + hud.notifyNoMoreAP(); } if (nextState == StateType.DONE) diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 9be9dba..6d8961a 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -254,9 +254,16 @@ public class Hud implements Disposable, Animation dialogs.addLast(dialog); } - public void notifyEndOfTurn() + public void notifyDeploymentDone() { - okCancel.show("You have no more Action Points left.", OkCancel.Action.END_TURN); + okCancel.show("Deployment Phase completed.", OkCancel.Action.END_TURN); + okCancel.noCancel(); + pushDialog(okCancel); + } + + public void notifyNoMoreAP() + { + okCancel.show("No more Action Point left.", OkCancel.Action.END_TURN); okCancel.noCancel(); pushDialog(okCancel); } |