diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 6 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/State.java | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 2885b5f..6b7b65d 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -24,6 +24,7 @@ import ch.asynk.rustanddust.game.states.StateAnimation; import ch.asynk.rustanddust.game.states.StateReinforcement; import ch.asynk.rustanddust.game.states.StateDeployment; import ch.asynk.rustanddust.game.states.StateWithdraw; +import ch.asynk.rustanddust.game.states.StateReplay; public abstract class Ctrl implements Disposable { @@ -48,6 +49,7 @@ public abstract class Ctrl implements Disposable private final State reinforcementState; private final State deploymentState; private final State withdrawState; + private final State replayState; private int animationCount = 0; @@ -92,6 +94,7 @@ public abstract class Ctrl implements Disposable this.reinforcementState = new StateReinforcement(); this.deploymentState = new StateDeployment(); this.withdrawState = new StateWithdraw(); + this.replayState = new StateReplay(); this.stateType = StateType.LOADING; @@ -354,6 +357,9 @@ public abstract class Ctrl implements Disposable case DEPLOYMENT: state = deploymentState; break; + case REPLAY: + state = replayState; + break; default: break; } diff --git a/core/src/ch/asynk/rustanddust/game/State.java b/core/src/ch/asynk/rustanddust/game/State.java index d3fbb1b..a3a6fec 100644 --- a/core/src/ch/asynk/rustanddust/game/State.java +++ b/core/src/ch/asynk/rustanddust/game/State.java @@ -4,6 +4,7 @@ public interface State { enum StateType { LOADING, + REPLAY, SELECT, MOVE, ROTATE, |