summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-09 22:53:54 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-09 22:53:54 +0100
commit371383241f048a01456c7e832ef12335900fcb2a (patch)
tree49cd024ca64c283c4b964b2df33b552c1bed0583 /core/src/ch
parent3f9ec5eedae4ba78105396775bb7ce2faf89f3d0 (diff)
downloadRustAndDust-371383241f048a01456c7e832ef12335900fcb2a.zip
RustAndDust-371383241f048a01456c7e832ef12335900fcb2a.tar.gz
Ctrl: code reorder
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index bc81779..1be23f9 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -184,6 +184,14 @@ public class Ctrl implements Disposable
setState(StateType.ABORT);
}
+ public void reinforcementHit()
+ {
+ if (this.stateType == StateType.SELECT)
+ setState(StateType.REINFORCEMENT);
+ else if (this.stateType == StateType.REINFORCEMENT)
+ setState(StateType.SELECT);
+ }
+
//
private void turnDone()
@@ -296,12 +304,4 @@ public class Ctrl implements Disposable
this.state.enter(tmp);
}
-
- public void reinforcementHit()
- {
- if (this.stateType == StateType.SELECT)
- setState(StateType.REINFORCEMENT);
- else if (this.stateType == StateType.REINFORCEMENT)
- setState(StateType.SELECT);
- }
}