diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-10 12:55:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-10 12:55:55 +0200 |
commit | 8ff4b3b1af1f5ebe76d84bca88cadcdddfc380ec (patch) | |
tree | 00db19bdfa3304691a693ce3fe0bd37fdb4dab17 /core | |
parent | 07bcaa12726b492a6b5079616eb4ffad143725fd (diff) | |
download | RustAndDust-8ff4b3b1af1f5ebe76d84bca88cadcdddfc380ec.zip RustAndDust-8ff4b3b1af1f5ebe76d84bca88cadcdddfc380ec.tar.gz |
BattleTest: use map.getExitZone(int) otherwise usExit is null
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleTest.java b/core/src/ch/asynk/rustanddust/game/battles/BattleTest.java index a9a7a91..e5f694d 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleTest.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleTest.java @@ -11,8 +11,6 @@ import ch.asynk.rustanddust.engine.Orientation; public class BattleTest extends BattleCommon { - private Zone usExit; - public BattleTest(Factory factory) { super(factory); @@ -42,7 +40,7 @@ public class BattleTest extends BattleCommon usEntry.allowedMoves = (Orientation.SOUTH.s | Orientation.SOUTH_EAST.s | Orientation.SOUTH_WEST.s); usEntry.add(map.getHex(12, 6)); addEntryZone(usEntry); - addReinforcement(currentPlayer, usEntry, usExit, UnitCode.US_WOLVERINE); + addReinforcement(currentPlayer, usEntry, map.getExitZone(0), UnitCode.US_WOLVERINE); } } @@ -89,7 +87,7 @@ public class BattleTest extends BattleCommon private void setupUS(final Ctrl ctrl, final Player p) { - usExit = new Zone(map, 9); + Zone usExit = new Zone(map, 9); usExit.orientation = Orientation.NORTH; usExit.add(11, 4); usExit.add(11, 5); |