summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-08 09:48:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-08 09:48:25 +0200
commita577a611d27bc7ffe7df254ba3bfecc37794af1c (patch)
tree21ee149c028b593f19db69d201a9758e9b1318b3
parentad9fe393fd55ce1b30a043882dc6731758bec84c (diff)
downloadRustAndDust-a577a611d27bc7ffe7df254ba3bfecc37794af1c.zip
RustAndDust-a577a611d27bc7ffe7df254ba3bfecc37794af1c.tar.gz
add GameCtrl.Config
-rw-r--r--core/src/ch/asynk/tankontank/game/GameCtrl.java18
1 files changed, 18 insertions, 0 deletions
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);