diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/battles')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleCommon.java | 6 |
1 files changed, 6 insertions, 0 deletions
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<EntryPoint> entryPoints = new ArrayList<EntryPoint>(); + protected ArrayList<EntryPoint> exitPoints = new ArrayList<EntryPoint>(); protected HashMap<Unit, EntryPoint> pawnEntry = new HashMap<Unit, EntryPoint>(); 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); |