summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Ctrl.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Ctrl.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 257df35..8b51867 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -62,6 +62,12 @@ public abstract class Ctrl implements Disposable
game.ctrl = this;
this.game = game;
this.battle = battle;
+ this.map = game.factory.getMap(battle.getMapType());
+ this.hud = new Hud(game);
+
+ this.blockMap = false;
+ this.blockHud = false;
+ this.touchedHex = null;
this.selectState = new StateSelect();
this.pathState = new StateMove();
@@ -76,17 +82,9 @@ public abstract class Ctrl implements Disposable
this.state = selectState;
this.stateType = StateType.DONE;
-
- this.blockMap = false;
- this.blockHud = false;
- this.touchedHex = null;
-
- this.map = battle.setup();
- this.hud = new Hud(game);
StateCommon.set(game);
- hud.update();
- setState(battle.getState());
+ setState(battle.setup(this));
this.hud.notify(battle.toString(), 2, Position.MIDDLE_CENTER, false);
}