summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleCommon.java5
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java1
2 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 328b4d0..58abcd9 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleCommon.java
@@ -30,6 +30,11 @@ public abstract class BattleCommon implements Battle
this.factory = factory;
}
+ public String toString()
+ {
+ return getName();
+ }
+
public String getName()
{
return name;
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index cbbeb6a..d1b9e46 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -20,6 +20,7 @@ public class BattleHeadToHead extends BattleCommon
{
super(factory);
randomizeArmies();
+ name = "Head To Head";
}
public Player checkVictory(Ctrl ctrl)