diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 17:18:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 17:18:15 +0100 |
commit | 16a272a9c485aec8687d2960de47af1a683c0f12 (patch) | |
tree | 11dae7acf1aea531cbf42cbb6edb78694eba7345 | |
parent | 5b8ce8c14305b4fffe650fc05ede973371709d72 (diff) | |
download | RustAndDust-16a272a9c485aec8687d2960de47af1a683c0f12.zip RustAndDust-16a272a9c485aec8687d2960de47af1a683c0f12.tar.gz |
BattleCommon: add addReinforcement(Player, EntryPoint, UnitId, boolean) -> setAce()
-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 eecad83..d7e6b23 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java @@ -55,7 +55,13 @@ public abstract class BattleCommon implements Battle public void addReinforcement(Player player, EntryPoint entryPoint, UnitId unitId) { + addReinforcement(player, entryPoint, unitId, false); + } + + public void addReinforcement(Player player, EntryPoint entryPoint, UnitId unitId, boolean ace) + { Unit unit = factory.getUnit(unitId); + unit.setAce(ace); player.addReinforcement(unit); pawnEntry.put(unit, entryPoint); } |