From 949ff247f8e7f68632906d73b009d77a22d485de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 22 Nov 2014 23:00:00 +0100 Subject: PlayerInfo: use String.format instead of ugly ""+ --- core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java index d6055fd..3c25b2c 100644 --- a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java +++ b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java @@ -90,14 +90,14 @@ public class PlayerInfo implements Disposable, Drawable public void update(Player player, Position position) { unitDock.hide(); - turns.write("" + player.getCurrentTurn()); - aps.write("" + player.getAp()); + turns.write(String.format("%d", player.getCurrentTurn())); + aps.write(String.format("%d", player.getAp())); int r = player.reinforcement(); if (r == 0) { reinforcement.visible = false; } else { reinforcement.visible = true; - reinforcement.write("" + r); + reinforcement.write(String.format("%d", r)); } if (player.is(Army.GE)) -- cgit v1.1-2-g2b99