summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/utils/Collection.java2
-rw-r--r--core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java5
2 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/utils/Collection.java b/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
index ce22795..b546217 100644
--- a/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
+++ b/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
@@ -25,4 +25,6 @@ public interface Collection<E> extends Iterator, Iterable<E>
public E remove(int idx);
public boolean remove(E e);
+
+ public E current();
}
diff --git a/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java b/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
index b32e290..1edf84f 100644
--- a/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
+++ b/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
@@ -128,6 +128,11 @@ public class IterableArray<E> implements Collection<E>
return (idx < s);
}
+ @Override public E current()
+ {
+ return get(idx);
+ }
+
@Override public E next()
{
E e = get(idx);