summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index acc92dd..4c13791 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -167,20 +167,6 @@ public class Ctrl implements Disposable
return nextState;
}
- public void stateTouchUp()
- {
- this.state.touchUp();
- }
-
-
- public void reinforcementHit()
- {
- if (this.stateType == StateType.SELECT)
- setState(StateType.REINFORCEMENT);
- else if (this.stateType == StateType.REINFORCEMENT)
- setState(StateType.SELECT);
- }
-
public void setState(StateType nextState)
{
if (nextState == StateType.ABORT)
@@ -246,6 +232,20 @@ public class Ctrl implements Disposable
state.touchUp();
}
+ public void stateTouchUp()
+ {
+ this.state.touchUp();
+ }
+
+
+ public void reinforcementHit()
+ {
+ if (this.stateType == StateType.SELECT)
+ setState(StateType.REINFORCEMENT);
+ else if (this.stateType == StateType.REINFORCEMENT)
+ setState(StateType.SELECT);
+ }
+
public void setAfterAnimationState(StateType after)
{
stateAfterAnimation = after;