summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-11 11:18:36 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-11 11:18:36 +0100
commit93787b90bc28168b67db42ae3be60c7e18dba8c5 (patch)
tree0c1059a113903bcead9ae4f579f45b0521bd3f6d /core/src/ch/asynk
parent629e4e930f69f9ce3d3bc43cb8fd78e9916ce848 (diff)
downloadRustAndDust-93787b90bc28168b67db42ae3be60c7e18dba8c5.zip
RustAndDust-93787b90bc28168b67db42ae3be60c7e18dba8c5.tar.gz
BattleTest: set Ace Sherman to test ace re-roll
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java
index 1075268..08ef284 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java
@@ -50,11 +50,12 @@ public class BattleTest extends BattleCommon
return null;
}
- private void setUnit(Map map, Player player, UnitId unitId, int col, int row, Orientation orientation)
+ private Unit setUnit(Map map, Player player, UnitId unitId, int col, int row, Orientation orientation)
{
Unit u = factory.getUnit(unitId);
player.addUnit(u);
map.setPawnOnto(u, map.getHex(col, row), orientation);
+ return u;
}
@Override
@@ -64,7 +65,7 @@ public class BattleTest extends BattleCommon
usPlayer.casualty(factory.getUnit(UnitId.US_SHERMAN_HQ));
setUnit(map, usPlayer, UnitId.US_PRIEST, 10, 8, Orientation.SOUTH_EAST);
- setUnit(map, usPlayer, UnitId.US_SHERMAN, 7, 3, Orientation.SOUTH);
+ setUnit(map, usPlayer, UnitId.US_SHERMAN, 7, 3, Orientation.SOUTH).setAce(true);
setUnit(map, usPlayer, UnitId.US_SHERMAN_HQ, 8, 4, Orientation.SOUTH);
setUnit(map, usPlayer, UnitId.US_WOLVERINE, 9, 7, Orientation.SOUTH_EAST);
setUnit(map, usPlayer, UnitId.US_SHERMAN, 6, 6, Orientation.NORTH_EAST);