summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-29 11:54:01 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-29 11:54:01 +0200
commit172e8f0bf1e4f91c5c5a529e5b3d7f4737b35e19 (patch)
tree233674ac020c05e6c1bcc768f08038a450e48eca /core/src/ch/asynk/rustanddust
parenta562eb32f6c9475925a4326f3dcfe86ffc3d3157 (diff)
downloadRustAndDust-172e8f0bf1e4f91c5c5a529e5b3d7f4737b35e19.zip
RustAndDust-172e8f0bf1e4f91c5c5a529e5b3d7f4737b35e19.tar.gz
Ctrl,State: enable StateReplay
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java6
-rw-r--r--core/src/ch/asynk/rustanddust/game/State.java1
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,