summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Config.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java
new file mode 100644
index 0000000..2c27c35
--- /dev/null
+++ b/core/src/ch/asynk/rustanddust/game/Config.java
@@ -0,0 +1,76 @@
+package ch.asynk.rustanddust.game;
+
+public class Config
+{
+ public enum Graphics {
+ MINE("mine", 0),
+ ORIGINAL("original", 1);
+ public String s;
+ public int i;
+ Graphics(String s, int i)
+ {
+ this.s = s;
+ this.i = i;
+ }
+ public Graphics next()
+ {
+ if (this == ORIGINAL)
+ return MINE;
+ return ORIGINAL;
+ }
+ };
+
+ public enum GameMode
+ {
+ SOLO("Solo", 0),
+ PVE("Player vs AI", 1),
+ PVP("Player vs Player", 2);
+ public String s;
+ public int i;
+ GameMode(String s, int i)
+ {
+ this.s = s;
+ this.i = i;
+ }
+ public GameMode next()
+ {
+ if (this == SOLO)
+ return PVE;
+ if(this == PVE)
+ return PVP;
+ return SOLO;
+ }
+ };
+
+ public GameMode gameMode;
+ public boolean showMoves;
+ public boolean showTargets;
+ public boolean showMoveAssists;
+ public boolean canCancel;
+ public boolean mustValidate;
+ public boolean showEnemyPossibilities;
+ public boolean debug;
+ public Battle battle;
+ public float fxVolume;
+ public Graphics graphics;
+
+ public Config()
+ {
+ this.gameMode = GameMode.SOLO;
+ this.debug = false;
+ this.showMoves = true;
+ this.showTargets = true;
+ this.showMoveAssists = true;
+ this.canCancel = false;
+ this.mustValidate = false;
+ this.showEnemyPossibilities = false;
+ this.graphics = Graphics.MINE;
+ this.battle = null;
+ this.fxVolume = 1f;
+ }
+
+ public boolean gameModeImplemented()
+ {
+ return (gameMode == GameMode.SOLO);
+ }
+}