summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-19 14:18:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-19 14:18:43 +0100
commitaed0e85d1a539586f8ef02616ab1d3c87396e1f7 (patch)
treeb27b66fbcfffc3264128f834f6bf59903831b354 /core
parent83eef7eeb4487083f67a9e6a30c8881354c18b3a (diff)
downloadRustAndDust-aed0e85d1a539586f8ef02616ab1d3c87396e1f7.zip
RustAndDust-aed0e85d1a539586f8ef02616ab1d3c87396e1f7.tar.gz
PlayerInfo,Statistics: adapt to new Player turn API
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Statistics.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
index dc0c195..d6055fd 100644
--- a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
+++ b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
@@ -90,7 +90,7 @@ public class PlayerInfo implements Disposable, Drawable
public void update(Player player, Position position)
{
unitDock.hide();
- turns.write("" + player.getTurn());
+ turns.write("" + player.getCurrentTurn());
aps.write("" + player.getAp());
int r = player.reinforcement();
if (r == 0) {
diff --git a/core/src/ch/asynk/tankontank/game/hud/Statistics.java b/core/src/ch/asynk/tankontank/game/hud/Statistics.java
index bfad178..8742601 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Statistics.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Statistics.java
@@ -32,7 +32,7 @@ public class Statistics extends Bg
public void show(Player winner, Player loser, Position position)
{
- title.write(winner.getName() + " player won the battle in " + winner.getTurn() + " turns.");
+ title.write(winner.getName() + " player won the battle in " + winner.getTurnDone() + " turns.");
stats1.write(winner.getStats());
stats2.write(loser.getStats());