diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-04 15:11:53 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-04 15:11:53 +0200 |
commit | 6674bc4913961a4811ca0bf825b4e84a366ac3b9 (patch) | |
tree | 83e989a844f997f858b3001ab48ced4dcb40477d /core/src/ch/asynk/rustanddust/game | |
parent | ac975b903ac17efee689bc28f363ff4141dbad90 (diff) | |
download | RustAndDust-6674bc4913961a4811ca0bf825b4e84a366ac3b9.zip RustAndDust-6674bc4913961a4811ca0bf825b4e84a366ac3b9.tar.gz |
Config: REPLAY_LAST / REPLAY_BATTLE
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Config.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java index db7fb5c..af1e17a 100644 --- a/core/src/ch/asynk/rustanddust/game/Config.java +++ b/core/src/ch/asynk/rustanddust/game/Config.java @@ -39,8 +39,8 @@ public class Config { NEW("New", 0), RESUME("Resume", 1), - REPLAY_CURRENT("Replay Current Turn", 2), - REPLAY_ALL("Full Replay", 3); + REPLAY_LAST("Replay Last Turn", 2), + REPLAY_BATTLE("Replay Battle", 3); public String s; public int i; LoadMode(String s, int i) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index db28b80..f3cf338 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -164,11 +164,11 @@ public abstract class Ctrl implements Disposable this.stateAfterAnimation = StateType.REPLAY; } break; - case REPLAY_CURRENT: + case REPLAY_LAST: map.prepareReplayCurrentTurn(); this.stateAfterAnimation = StateType.REPLAY; break; - case REPLAY_ALL: + case REPLAY_BATTLE: // TODO REPLAY ALL this.stateAfterAnimation = StateType.REPLAY; break; diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index 4821ec2..0d29d6d 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -42,9 +42,9 @@ public class Solo extends Ctrl { case NEW: break; case RESUME: r = game.db.loadGame(gameId); break; - case REPLAY_CURRENT: r = game.db.loadLastTurn(gameId); break; - case REPLAY_ALL: - // TODO REPLAY_ALL + case REPLAY_LAST: r = game.db.loadLastTurn(gameId); break; + case REPLAY_BATTLE: + // TODO REPLAY_BATTLE break; } return r; |