From a577a611d27bc7ffe7df254ba3bfecc37794af1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 8 Oct 2014 09:48:25 +0200 Subject: add GameCtrl.Config --- core/src/ch/asynk/tankontank/game/GameCtrl.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/core/src/ch/asynk/tankontank/game/GameCtrl.java b/core/src/ch/asynk/tankontank/game/GameCtrl.java index 3d895d4..73efaea 100644 --- a/core/src/ch/asynk/tankontank/game/GameCtrl.java +++ b/core/src/ch/asynk/tankontank/game/GameCtrl.java @@ -12,11 +12,27 @@ import ch.asynk.tankontank.game.states.GameStateAnimation; public class GameCtrl implements Disposable { + + public class Config + { + public boolean showMoves; + public boolean showTargets; + public boolean showMoveAssists; + + public Config() + { + this.showMoves = true;; + this.showTargets = true;; + this.showMoveAssists= true;; + } + } + private final TankOnTank game; private GameFactory factory; public Map map; public Hud hud; + public Config cfg; private GameState selectState; private GameState pathState; @@ -30,6 +46,8 @@ public class GameCtrl implements Disposable { this.game = game; + this.cfg = new Config(); + this.factory = new GameFactory(game.manager); this.hud = new Hud(this, game); this.map = factory.getMap(this, game.manager, GameFactory.MapType.MAP_A); -- cgit v1.1-2-g2b99