diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-16 16:06:53 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-16 16:06:53 +0100 |
commit | 397bfdac6ce93ea7a72601e216443db690e9e023 (patch) | |
tree | d9596df3ba811e67cd5f377e6a51a62d09dcf5fe /core/src/ch/asynk/tankontank/engine | |
parent | 2dcb4ab821677c04d4edfdb288e4cf40036fb015 (diff) | |
download | RustAndDust-397bfdac6ce93ea7a72601e216443db690e9e023.zip RustAndDust-397bfdac6ce93ea7a72601e216443db690e9e023.tar.gz |
Player: add casualties()
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Player.java | 5 |
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(); |