diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-19 17:45:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-19 17:45:35 +0100 |
commit | 9bd190fb06347311a054b8f4a50ccd8396e598b9 (patch) | |
tree | 392a68cf56f6f1f236c066adc7e54b71c7c38be4 /core/src/ch/asynk/tankontank/game/battles | |
parent | f7aadf54fe4e011362941050203afc39d4abdbc4 (diff) | |
download | RustAndDust-9bd190fb06347311a054b8f4a50ccd8396e598b9.zip RustAndDust-9bd190fb06347311a054b8f4a50ccd8396e598b9.tar.gz |
BattleTest: fix setUnit(), ctrl.player must be set
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/battles')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java index 468f860..d4d891f 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java @@ -85,6 +85,7 @@ public class BattleTest extends BattleCommon map.addObjective(6, 4, Army.NONE); map.addHoldObjective(5, 3, Army.NONE); + ctrl.player = gePlayer; setUnit(map, gePlayer, UnitId.GE_TIGER, 6, 4, Orientation.NORTH, null); Zone geEntry = new Zone(map, 6); geEntry.orientation = Orientation.NORTH; @@ -103,6 +104,7 @@ public class BattleTest extends BattleCommon usExit.add(map.getHex(12, 6)); addExitZone(usExit); + ctrl.player = usPlayer; usPlayer.casualty(factory.getUnit(UnitId.US_SHERMAN_HQ)); setUnit(map, usPlayer, UnitId.US_PRIEST, 10, 8, Orientation.SOUTH_EAST, usExit); setUnit(map, usPlayer, UnitId.US_SHERMAN, 7, 3, Orientation.SOUTH, true, usExit); |