From ae80a5a5121d432a3caba4232ec86c464fd09fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 17 Nov 2014 22:38:00 +0100 Subject: BattleCommon: add exitPoint --- core/src/ch/asynk/tankontank/game/battles/BattleCommon.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java index 745da34..49aa52c 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java @@ -22,6 +22,7 @@ public abstract class BattleCommon implements Battle protected Player usPlayer; protected Player gePlayer; protected ArrayList entryPoints = new ArrayList(); + protected ArrayList exitPoints = new ArrayList(); protected HashMap pawnEntry = new HashMap(); protected TileSet objectives; @@ -57,6 +58,11 @@ public abstract class BattleCommon implements Battle entryPoints.add(entry); } + public void addExitPoint(EntryPoint exit) + { + exitPoints.add(exit); + } + public void addReinforcement(Player player, EntryPoint entryPoint, UnitId unitId) { addReinforcement(player, entryPoint, unitId, false); -- cgit v1.1-2-g2b99