diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-28 00:25:14 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-28 00:25:14 +0100 |
commit | 3af5c412f15bda78330a0026485a0dd7bc3500c4 (patch) | |
tree | 1a0594f3e3af9b91be7fd8f376d6e96cf69ec9eb /core/src/ch/asynk | |
parent | be4fc4e8be38ab6f5a80fb779e49813cae4003d4 (diff) | |
download | RustAndDust-3af5c412f15bda78330a0026485a0dd7bc3500c4.zip RustAndDust-3af5c412f15bda78330a0026485a0dd7bc3500c4.tar.gz |
add Config.GameMode
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Config.java | 24 |
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; |