diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Player.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index 85869f8..d38d44e 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -2,6 +2,7 @@ package ch.asynk.tankontank.game; import java.util.ArrayList; import java.util.Random; +import java.util.Iterator; import com.badlogic.gdx.utils.Disposable; @@ -98,6 +99,11 @@ public class Player implements Drawable, Disposable flag.setPosition(x, y); } + public Iterator<Pawn> unitIterator() + { + return units.iterator(); + } + @Override public void draw(Batch batch) { |