summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/battles
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/battles')
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
index 64d04f0..d744734 100644
--- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
@@ -128,6 +128,15 @@ public abstract class BattleCommon implements Battle
}
@Override
+ public void init(Ctrl ctrl, String payload)
+ {
+ ctrl.map = this.map = factory.getMap(getMapType());
+ setupMap();
+ map.load(payload, players);
+ currentPlayer = players[0];
+ }
+
+ @Override
public boolean actionDone()
{
boolean burn = (map.unitsActivatedSize() > 0);