diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Config.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/PvP.java | 25 |
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() + { + } +} |