summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-03 16:39:44 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-03 16:39:44 +0100
commit67d6963c0ffc335d69d9e1f1274a44f16ae4d99f (patch)
treea0bf79af1b08f9cdead1672b7efca183cf6188c0 /core/src/ch/asynk
parent4d5bebaf9b77bebff7e4f3098d4fc6198775056c (diff)
downloadRustAndDust-67d6963c0ffc335d69d9e1f1274a44f16ae4d99f.zip
RustAndDust-67d6963c0ffc335d69d9e1f1274a44f16ae4d99f.tar.gz
engine/Player: replace reinforcementIterator() with List<Pawn> getReinforcement()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Player.java16
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();
- }
}