summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java56
1 files changed, 28 insertions, 28 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 383417b..8896101 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -153,6 +153,34 @@ public class Ctrl implements Disposable
}
}
+ public void endDeployment()
+ {
+ setState(StateType.DONE);
+ turnDone();
+ }
+
+ public void endGame()
+ {
+ game.switchToMenu();
+ }
+
+ public void endPlayerTurn(boolean abort)
+ {
+ if (abort)
+ state.abort();
+ turnDone();
+ }
+
+ public void exitBoard(boolean doit)
+ {
+ if (doit)
+ setState(StateType.DONE);
+ else
+ setState(StateType.ABORT);
+ }
+
+ //
+
private void turnDone()
{
if (battle.turnDone())
@@ -276,32 +304,4 @@ public class Ctrl implements Disposable
else if (this.stateType == StateType.REINFORCEMENT)
setState(StateType.SELECT);
}
-
- // Hud callbacks
-
- public void endDeployment()
- {
- setState(StateType.DONE);
- turnDone();
- }
-
- public void endGame()
- {
- game.switchToMenu();
- }
-
- public void endPlayerTurn(boolean abort)
- {
- if (abort)
- state.abort();
- turnDone();
- }
-
- public void exitBoard(boolean doit)
- {
- if (doit)
- setState(StateType.DONE);
- else
- setState(StateType.ABORT);
- }
}