summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/battles
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-17 11:07:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-17 11:07:42 +0100
commitb4c82404bcb7b2e1f58339088ccf48023c1da6f9 (patch)
tree2522aa4154f21e9cdc999509e785240ecb572bb2 /core/src/ch/asynk/tankontank/game/battles
parent1761ccbc8e6bb4d3da6a16fea30da7aff9f414ef (diff)
downloadRustAndDust-b4c82404bcb7b2e1f58339088ccf48023c1da6f9.zip
RustAndDust-b4c82404bcb7b2e1f58339088ccf48023c1da6f9.tar.gz
Battle,Ctrl: add boolean getReinforcement(Ctrl)
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/battles')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java7
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java7
2 files changed, 14 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java b/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
index c4e760d..f31aff4 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
@@ -55,6 +55,13 @@ public class BattleFrontalAssault extends BattleCommon
return ((player.is(Army.GE) && (n == 4)));
}
+ @Override
+ public boolean getReinforcement(Ctrl ctrl)
+ {
+ return false;
+ }
+
+ @Override
public Player checkVictory(Ctrl ctrl)
{
if (ctrl.opponent.unitsLeft() == 0)
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index 8e9ed67..14efe77 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -47,6 +47,13 @@ public class BattleHeadToHead extends BattleCommon
return StateType.SELECT;
}
+ @Override
+ public boolean getReinforcement(Ctrl ctrl)
+ {
+ return false;
+ }
+
+ @Override
public Player checkVictory(Ctrl ctrl)
{
if (ctrl.opponent.unitsLeft() == 0)