diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 22:38:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 22:38:00 +0100 |
commit | ae80a5a5121d432a3caba4232ec86c464fd09fc4 (patch) | |
tree | 223f2cd36069938dd680d464a36ed249a6e54ca0 /core | |
parent | e3a04e47e5ce94fa758ad7bdaa38b61646c05bfd (diff) | |
download | RustAndDust-ae80a5a5121d432a3caba4232ec86c464fd09fc4.zip RustAndDust-ae80a5a5121d432a3caba4232ec86c464fd09fc4.tar.gz |
BattleCommon: add exitPoint
Diffstat (limited to 'core')
-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); |