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/Ctrl.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Player.java5
2 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index e2aec6b..ca2ca64 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -105,7 +105,7 @@ public class Ctrl implements Disposable
player().turnEnd();
player = ((player + 1) % 2);
player().turnStart();
- hud.notify(player().army + "'s turn");
+ hud.notify(player().getName() + "'s turn");
}
private void checkTurnEnd()
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java
index 951bafd..75368cc 100644
--- a/core/src/ch/asynk/tankontank/game/Player.java
+++ b/core/src/ch/asynk/tankontank/game/Player.java
@@ -42,6 +42,11 @@ public class Player implements Drawable, Disposable
this.status = new Msg(font, atlas.findRegion("disabled"));
}
+ public String getName()
+ {
+ return army.toString();
+ }
+
public String toString()
{
return army + " AP: " + actionPoints +