From 6cd982d3dfc98bdf953c5b8a110ccd233af74c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 4 Nov 2014 12:18:33 +0100 Subject: engine/Player: reinforcement is public -> no need of reinforcementCount() --- core/src/ch/asynk/tankontank/engine/Player.java | 5 ----- core/src/ch/asynk/tankontank/game/Hud.java | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java index 18552e1..385a3ae 100644 --- a/core/src/ch/asynk/tankontank/engine/Player.java +++ b/core/src/ch/asynk/tankontank/engine/Player.java @@ -40,11 +40,6 @@ public abstract class Player return (units.size() + reinforcement.size()); } - public int reinforcementCount() - { - return reinforcement.size(); - } - public String getName() { return faction.toString(); diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index b0d1d2d..6d0dc09 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -90,7 +90,7 @@ public class Hud implements Disposable { turns.write("" + ctrl.player.getTurn()); aps.write("" + ctrl.player.getAp()); - int r = ctrl.player.reinforcementCount(); + int r = ctrl.player.reinforcement.size(); if (r == 0) { reinforcement.visible = false; } else { -- cgit v1.1-2-g2b99