diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Player.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 2 |
2 files changed, 1 insertions, 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 { |