From 67d6963c0ffc335d69d9e1f1274a44f16ae4d99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 3 Nov 2014 16:39:44 +0100 Subject: engine/Player: replace reinforcementIterator() with List getReinforcement() --- core/src/ch/asynk/tankontank/engine/Player.java | 16 ++++++---------- 1 file 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 getReinforcement() + { + return reinforcement; + } + public int unitsLeft() { return (units.size() + reinforcement.size()); @@ -75,14 +81,4 @@ public abstract class Player { return units.iterator(); } - - public Iterator casualtiesIterator() - { - return casualties.iterator(); - } - - public Iterator reinforcementIterator() - { - return reinforcement.iterator(); - } } -- cgit v1.1-2-g2b99