summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-16 01:20:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-16 01:20:14 +0100
commit01c664b5cb2d5b44104eaec82f484c69d0ad3ea4 (patch)
tree7f929d60fd905633e74b764bc484000399251f19 /core
parent4a94c483aa2062e25ffa6dc71b261fad528899d3 (diff)
downloadRustAndDust-01c664b5cb2d5b44104eaec82f484c69d0ad3ea4.zip
RustAndDust-01c664b5cb2d5b44104eaec82f484c69d0ad3ea4.tar.gz
Battle: add boolean deploymentDone(Player player)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Battle.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java6
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Battle.java b/core/src/ch/asynk/tankontank/game/Battle.java
index a9947c4..4d5178c 100644
--- a/core/src/ch/asynk/tankontank/game/Battle.java
+++ b/core/src/ch/asynk/tankontank/game/Battle.java
@@ -26,4 +26,6 @@ public interface Battle
public Position getHudPosition(Player player);
public State.StateType getState(Player player);
+
+ public boolean deploymentDone(Player player);
}
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index 794f4eb..364c897 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -52,6 +52,12 @@ public class BattleHeadToHead extends BattleCommon
}
@Override
+ public boolean deploymentDone(Player player)
+ {
+ return true;
+ }
+
+ @Override
public Position getHudPosition(Player player)
{
return (player.is(Army.US) ? Position.TOP_RIGHT: Position.TOP_LEFT);