summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-16 16:06:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-16 16:06:53 +0100
commit397bfdac6ce93ea7a72601e216443db690e9e023 (patch)
treed9596df3ba811e67cd5f377e6a51a62d09dcf5fe /core
parent2dcb4ab821677c04d4edfdb288e4cf40036fb015 (diff)
downloadRustAndDust-397bfdac6ce93ea7a72601e216443db690e9e023.zip
RustAndDust-397bfdac6ce93ea7a72601e216443db690e9e023.tar.gz
Player: add casualties()
Diffstat (limited to 'core')
-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 58839bf..cb9543d 100644
--- a/core/src/ch/asynk/tankontank/engine/Player.java
+++ b/core/src/ch/asynk/tankontank/engine/Player.java
@@ -40,6 +40,11 @@ public abstract class Player
return (units.size() + reinforcement.size());
}
+ public int casualties()
+ {
+ return casualties.size();
+ }
+
public String getName()
{
return faction.toString();