From 371383241f048a01456c7e832ef12335900fcb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 Dec 2015 22:53:54 +0100 Subject: Ctrl: code reorder --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 16 ++++++++-------- 1 file 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); - } } -- cgit v1.1-2-g2b99