summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-22 23:00:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-22 23:00:00 +0100
commit949ff247f8e7f68632906d73b009d77a22d485de (patch)
treedd7ca98dce703b380241c9d0858e1b24f14bcef7 /core/src
parentf3e66547b54f1721b23fdc771c9dbf1f38c757ef (diff)
downloadRustAndDust-949ff247f8e7f68632906d73b009d77a22d485de.zip
RustAndDust-949ff247f8e7f68632906d73b009d77a22d485de.tar.gz
PlayerInfo: use String.format instead of ugly ""+
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java6
1 files 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))