diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 12:13:02 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 22:26:28 +0100 |
commit | 8a15825b13459d74e1ce157c90881dad92c87e3d (patch) | |
tree | 4f07ac6b66a9e04f7e43d7389bedddea03d64b79 /core/src/ch/asynk/rustanddust/game/battles | |
parent | ea54afb0ce7fe12d5f96114d767244e7505a8a5c (diff) | |
download | RustAndDust-8a15825b13459d74e1ce157c90881dad92c87e3d.zip RustAndDust-8a15825b13459d74e1ce157c90881dad92c87e3d.tar.gz |
Battle,Ctrl: clean up initialisation phase
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/battles')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index be55d2e..205af5e 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -3,7 +3,6 @@ package ch.asynk.rustanddust.game.battles; import java.util.Random; import java.util.HashMap; -import ch.asynk.rustanddust.game.Ctrl; import ch.asynk.rustanddust.game.Army; import ch.asynk.rustanddust.game.Battle; import ch.asynk.rustanddust.game.Player; @@ -94,14 +93,12 @@ public abstract class BattleCommon implements Battle } @Override - public State.StateType setup(Ctrl ctrl) + public void init() { this.map = ctrl.map; this.usPlayer = factory.getPlayer(Army.US); this.gePlayer = factory.getPlayer(Army.GE); - ctrl.hud.update(); - ctrl.init(); setupMap(); this.currentPlayer = this.usPlayer; @@ -117,8 +114,6 @@ public abstract class BattleCommon implements Battle map.turnDone(); this.currentPlayer = getFirstPlayer(); - - return getState(); } @Override |