summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-04 12:18:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-04 12:18:33 +0100
commit6cd982d3dfc98bdf953c5b8a110ccd233af74c33 (patch)
tree36fd41df7c750c98521116e462d728a4e4c20af1 /core
parentcf45c1e77ffc2a987dbf37c7b67dd01a38d6b440 (diff)
downloadRustAndDust-6cd982d3dfc98bdf953c5b8a110ccd233af74c33.zip
RustAndDust-6cd982d3dfc98bdf953c5b8a110ccd233af74c33.tar.gz
engine/Player: reinforcement is public -> no need of reinforcementCount()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Player.java5
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java2
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 {