summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-25 00:02:55 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-25 00:02:55 +0100
commit482662264372d53eb90e4dc41cb4372701a6c338 (patch)
tree33902b751e8fa4019842042acf14fa1f20a27ee0 /core/src/ch
parent2db803147a794cc1804edb2233e37027515069bc (diff)
downloadRustAndDust-482662264372d53eb90e4dc41cb4372701a6c338.zip
RustAndDust-482662264372d53eb90e4dc41cb4372701a6c338.tar.gz
add ctrl/PvP
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java4
-rw-r--r--core/src/ch/asynk/rustanddust/game/ctrl/PvP.java25
3 files changed, 30 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java
index 6e7001b..d9d355b 100644
--- a/core/src/ch/asynk/rustanddust/game/Config.java
+++ b/core/src/ch/asynk/rustanddust/game/Config.java
@@ -79,6 +79,6 @@ public class Config
public boolean gameModeImplemented()
{
- return (gameMode == GameMode.SOLO);
+ return (gameMode != GameMode.PVE);
}
}
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 6a49de2..29202fa 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -5,6 +5,7 @@ import com.badlogic.gdx.utils.Disposable;
import ch.asynk.rustanddust.RustAndDust;
import ch.asynk.rustanddust.ui.Position;
import ch.asynk.rustanddust.game.ctrl.Solo;
+import ch.asynk.rustanddust.game.ctrl.PvP;
import ch.asynk.rustanddust.game.State.StateType;
import ch.asynk.rustanddust.game.states.StateCommon;
import ch.asynk.rustanddust.game.states.StateSelect;
@@ -56,6 +57,9 @@ public abstract class Ctrl implements Disposable
case SOLO:
ctrl = new Solo(game, game.config.battle);
break;
+ case PVP:
+ ctrl = new PvP(game, game.config.battle);
+ break;
}
return ctrl;
}
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/PvP.java b/core/src/ch/asynk/rustanddust/game/ctrl/PvP.java
new file mode 100644
index 0000000..a10f547
--- /dev/null
+++ b/core/src/ch/asynk/rustanddust/game/ctrl/PvP.java
@@ -0,0 +1,25 @@
+package ch.asynk.rustanddust.game.ctrl;
+
+import ch.asynk.rustanddust.RustAndDust;
+import ch.asynk.rustanddust.game.Ctrl;
+import ch.asynk.rustanddust.game.Battle;
+
+public class PvP extends Ctrl
+{
+ private int gameId;
+
+ public PvP(final RustAndDust game, final Battle battle)
+ {
+ super(game, battle);
+ }
+
+ @Override
+ public void init()
+ {
+ }
+
+ @Override
+ protected void processTurn()
+ {
+ }
+}