diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Player.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java index fa0a4d0..18552e1 100644 --- a/core/src/ch/asynk/tankontank/engine/Player.java +++ b/core/src/ch/asynk/tankontank/engine/Player.java @@ -1,5 +1,6 @@ package ch.asynk.tankontank.engine; +import java.util.List; import java.util.ArrayList; import java.util.Random; import java.util.Iterator; @@ -29,6 +30,11 @@ public abstract class Player return faction; } + public List<Pawn> getReinforcement() + { + return reinforcement; + } + public int unitsLeft() { return (units.size() + reinforcement.size()); @@ -75,14 +81,4 @@ public abstract class Player { return units.iterator(); } - - public Iterator<Pawn> casualtiesIterator() - { - return casualties.iterator(); - } - - public Iterator<Pawn> reinforcementIterator() - { - return reinforcement.iterator(); - } } |