summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-17 17:18:15 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-17 17:18:15 +0100
commit16a272a9c485aec8687d2960de47af1a683c0f12 (patch)
tree11dae7acf1aea531cbf42cbb6edb78694eba7345 /core/src/ch/asynk/tankontank
parent5b8ce8c14305b4fffe650fc05ede973371709d72 (diff)
downloadRustAndDust-16a272a9c485aec8687d2960de47af1a683c0f12.zip
RustAndDust-16a272a9c485aec8687d2960de47af1a683c0f12.tar.gz
BattleCommon: add addReinforcement(Player, EntryPoint, UnitId, boolean) -> setAce()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleCommon.java6
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);
}