summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java5
-rw-r--r--core/src/ch/asynk/rustanddust/game/ctrl/Solo.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 1b21e09..cefbb0f 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -70,8 +70,6 @@ public abstract class Ctrl implements Disposable
this.game = game;
this.battle = battle;
this.hud = new Hud(game);
- battle.init(this);
- init();
this.blockMap = false;
this.blockHud = false;
@@ -90,8 +88,9 @@ public abstract class Ctrl implements Disposable
this.state = selectState;
this.stateType = StateType.DONE;
- StateCommon.set(game);
+ init();
+ StateCommon.set(game);
hud.update();
this.hud.notify(battle.toString(), 2, Position.MIDDLE_CENTER, false);
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java
index 4c71bc0..a2b5be1 100644
--- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java
+++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java
@@ -12,7 +12,10 @@ public class Solo extends Ctrl
}
@Override
- public void init() { }
+ public void init()
+ {
+ battle.init(this);
+ }
@Override
protected void processTurn() { }