From aed0e85d1a539586f8ef02616ab1d3c87396e1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 19 Nov 2014 14:18:43 +0100 Subject: PlayerInfo,Statistics: adapt to new Player turn API --- core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java | 2 +- core/src/ch/asynk/tankontank/game/hud/Statistics.java | 2 +- 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()); -- cgit v1.1-2-g2b99