summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleCommon.java10
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java12
2 files changed, 10 insertions, 12 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java
index c39b2b4..328b4d0 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java
@@ -51,6 +51,16 @@ public abstract class BattleCommon implements Battle
}
}
+ public Player getFirstPlayer()
+ {
+ return factory.getPlayer(firstArmy);
+ }
+
+ public Player getSecondPlayer()
+ {
+ return factory.getPlayer(secondArmy);
+ }
+
public void addEntryPoint(EntryPoint entry)
{
entryPoints.add(entry);
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index fefc1d2..5b7b0f3 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -64,18 +64,6 @@ public class BattleHeadToHead extends BattleCommon
}
@Override
- public Player getFirstPlayer()
- {
- return factory.getPlayer(firstArmy);
- }
-
- @Override
- public Player getSecondPlayer()
- {
- return factory.getPlayer(secondArmy);
- }
-
- @Override
public StateType getState(Player player)
{
return StateType.SELECT;