diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 22:27:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 22:27:12 +0100 |
commit | cc96310a9a8bb040f3af7f8f4f5a1c9225dd6933 (patch) | |
tree | fdcdaa4a65e4a5cda2294fba1472108b083aad65 /core/src/ch/asynk/tankontank | |
parent | 91bbed26a1c275d13b54e23b3dd56b3530a33419 (diff) | |
download | RustAndDust-cc96310a9a8bb040f3af7f8f4f5a1c9225dd6933.zip RustAndDust-cc96310a9a8bb040f3af7f8f4f5a1c9225dd6933.tar.gz |
BattleHeadToHead use entryPoint
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java index 8764751..ab3e5fb 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java @@ -14,6 +14,7 @@ import ch.asynk.tankontank.game.Unit.UnitId; import ch.asynk.tankontank.game.hud.Position; import ch.asynk.tankontank.engine.Tile; import ch.asynk.tankontank.engine.TileSet; +import ch.asynk.tankontank.engine.EntryPoint; import ch.asynk.tankontank.engine.Orientation; public class BattleHeadToHead extends BattleCommon @@ -105,7 +106,8 @@ public class BattleHeadToHead extends BattleCommon objectives.add(map.getHex(6, 1)); objectives.enable(Hex.OBJECTIVE, true); - TileSet geEntry = new TileSet(map, 10); + EntryPoint geEntry = new EntryPoint(map, 10); + geEntry.allowedMoves = (Orientation.NORTH.s | Orientation.NORTH_EAST.s | Orientation.NORTH_WEST.s); geEntry.add(map.getHex(0, 0)); geEntry.add(map.getHex(1, 1)); geEntry.add(map.getHex(1, 2)); @@ -117,7 +119,8 @@ public class BattleHeadToHead extends BattleCommon geEntry.add(map.getHex(4, 8)); addEntryPoint(geEntry); - TileSet usEntry = new TileSet(map, 10); + EntryPoint usEntry = new EntryPoint(map, 10); + usEntry.allowedMoves = (Orientation.SOUTH.s | Orientation.SOUTH_EAST.s | Orientation.SOUTH_WEST.s); usEntry.add(map.getHex(9, 0)); usEntry.add(map.getHex(9, 1)); usEntry.add(map.getHex(10, 2)); |