summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-28 00:25:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-28 00:25:14 +0100
commit3af5c412f15bda78330a0026485a0dd7bc3500c4 (patch)
tree1a0594f3e3af9b91be7fd8f376d6e96cf69ec9eb /core
parentbe4fc4e8be38ab6f5a80fb779e49813cae4003d4 (diff)
downloadRustAndDust-3af5c412f15bda78330a0026485a0dd7bc3500c4.zip
RustAndDust-3af5c412f15bda78330a0026485a0dd7bc3500c4.tar.gz
add Config.GameMode
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Config.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Config.java b/core/src/ch/asynk/tankontank/game/Config.java
index 976f1a6..a04cf9b 100644
--- a/core/src/ch/asynk/tankontank/game/Config.java
+++ b/core/src/ch/asynk/tankontank/game/Config.java
@@ -20,6 +20,29 @@ public class Config
}
};
+ 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;
@@ -33,6 +56,7 @@ public class Config
public Config()
{
+ this.gameMode = GameMode.SOLO;
this.debug = false;
this.showMoves = true;
this.showTargets = true;