summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-18 16:33:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-18 16:33:43 +0100
commit1277b7ba2cd2e0fd4dd6aab3c17162acd89bf16a (patch)
tree6c5f88b5b933e7422677401e36274b888dd88132
parent76dcc61e3fb03ad381d9f51c7dd02ef89ce3a573 (diff)
downloadRustAndDust-1277b7ba2cd2e0fd4dd6aab3c17162acd89bf16a.zip
RustAndDust-1277b7ba2cd2e0fd4dd6aab3c17162acd89bf16a.tar.gz
BattleCounterAttack: add exitZone
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleCounterAttack.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleCounterAttack.java b/core/src/ch/asynk/tankontank/game/battles/BattleCounterAttack.java
index 5f5f1df..e30164c 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleCounterAttack.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleCounterAttack.java
@@ -110,6 +110,19 @@ public class BattleCounterAttack extends BattleCommon
Player gePlayer = ctrl.getPlayer(Army.GE);
Player usPlayer = ctrl.getPlayer(Army.US);
+ Zone geExit = new Zone(map, 9);
+ geExit.allowedMoves = (Orientation.NORTH.s | Orientation.NORTH_EAST.s | Orientation.NORTH_WEST.s);
+ geExit.add(map.getHex(9, 0));
+ geExit.add(map.getHex(9, 1));
+ geExit.add(map.getHex(10, 2));
+ geExit.add(map.getHex(10, 3));
+ geExit.add(map.getHex(11, 4));
+ geExit.add(map.getHex(11, 5));
+ geExit.add(map.getHex(12, 6));
+ geExit.add(map.getHex(12, 7));
+ geExit.add(map.getHex(13, 8));
+ addExitZone(geExit);
+
Zone geEntry = new Zone(map, 18);
geEntry.orientation = Orientation.NORTH;
for (int i = 0; i < 2; i++) {
@@ -125,29 +138,16 @@ public class BattleCounterAttack extends BattleCommon
}
addEntryZone(geEntry);
- addReinforcement(gePlayer, geEntry, UnitId.GE_TIGER);
- addReinforcement(gePlayer, geEntry, UnitId.GE_TIGER);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV_HQ);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV_HQ);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV);
- addReinforcement(gePlayer, geEntry, UnitId.GE_PANZER_IV);
- addReinforcement(gePlayer, geEntry, UnitId.GE_WESPE);
-
- Zone geExit = new Zone(map, 9);
- geExit.allowedMoves = (Orientation.NORTH.s | Orientation.NORTH_EAST.s | Orientation.NORTH_WEST.s);
- geExit.add(map.getHex(9, 0));
- geExit.add(map.getHex(9, 1));
- geExit.add(map.getHex(10, 2));
- geExit.add(map.getHex(10, 3));
- geExit.add(map.getHex(11, 4));
- geExit.add(map.getHex(11, 5));
- geExit.add(map.getHex(12, 6));
- geExit.add(map.getHex(12, 7));
- geExit.add(map.getHex(13, 8));
- addExitZone(geExit);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_TIGER);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_TIGER);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV_HQ);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV_HQ);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_PANZER_IV);
+ addReinforcement(gePlayer, geEntry, geExit, UnitId.GE_WESPE);
Zone usEntry = new Zone(map, 36);
usEntry.orientation = Orientation.SOUTH;