summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-02 13:28:39 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-02 13:28:39 +0100
commit607fdc973096deb44498f35b35edb3670f134665 (patch)
treea661b2da5c31d043313ea6337a48b4b4be22ad54
parent944aa66b27cdd1ed6b06c82244ac0004fc742822 (diff)
downloadRustAndDust-607fdc973096deb44498f35b35edb3670f134665.zip
RustAndDust-607fdc973096deb44498f35b35edb3670f134665.tar.gz
engine/Player: add reinforcementCount()
-rw-r--r--core/src/ch/asynk/tankontank/engine/Player.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java
index 4678484..fa0a4d0 100644
--- a/core/src/ch/asynk/tankontank/engine/Player.java
+++ b/core/src/ch/asynk/tankontank/engine/Player.java
@@ -34,6 +34,11 @@ public abstract class Player
return (units.size() + reinforcement.size());
}
+ public int reinforcementCount()
+ {
+ return reinforcement.size();
+ }
+
public String getName()
{
return faction.toString();