summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-06 17:17:08 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-06 17:17:08 +0200
commitdef6c5e10c04f62d050f5743ca3da25bf294d03c (patch)
tree051330f6fe42ee97e6692c9b9efa01172bcc2cee /core/src/ch
parentddca67e08b2d9c708a57a56ecca53588ee81147f (diff)
downloadRustAndDust-def6c5e10c04f62d050f5743ca3da25bf294d03c.zip
RustAndDust-def6c5e10c04f62d050f5743ca3da25bf294d03c.tar.gz
Config: add revertAllMoves = false
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java
index ed9d224..318eae9 100644
--- a/core/src/ch/asynk/rustanddust/game/Config.java
+++ b/core/src/ch/asynk/rustanddust/game/Config.java
@@ -87,6 +87,7 @@ public class Config
public boolean showMoveAssists;
public boolean showEnemyPossibilities;
public boolean autoPath;
+ public boolean revertAllMoves;
public boolean debug;
public Battle battle;
public int gameId;
@@ -103,6 +104,7 @@ public class Config
this.loadMode = LoadMode.LOAD;
this.debug = false;
this.autoPath = true;
+ this.revertAllMoves = false;
this.showMoves = true;
this.showTargets = true;
this.showMoveAssists = true;
@@ -127,6 +129,7 @@ public class Config
json.writeValue("mode", gameMode);
json.writeValue("debug", debug);
json.writeValue("autoPath", autoPath);
+ json.writeValue("revertAllMoves", revertAllMoves);
json.writeValue("showMoves", showMoves);
json.writeValue("showTargets", showTargets);
json.writeValue("showMoveAssists", showMoveAssists);
@@ -146,6 +149,7 @@ public class Config
this.gameMode = GameMode.valueOf(root.getString("mode"));
this.debug = root.getBoolean("debug");
this.autoPath = root.getBoolean("autoPath");
+ this.revertAllMoves = root.getBoolean("revertAllMoves");
this.showMoves = root.getBoolean("showMoves");
this.showTargets = root.getBoolean("showTargets");
this.showMoveAssists = root.getBoolean("showMoveAssists");