summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/model/StoneTray.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/jrummikub/model/StoneTray.java b/src/jrummikub/model/StoneTray.java
index 4a22870..6691a45 100644
--- a/src/jrummikub/model/StoneTray.java
+++ b/src/jrummikub/model/StoneTray.java
@@ -1,7 +1,12 @@
package jrummikub.model;
+import java.util.Iterator;
+import java.util.List;
+
+import jrummikub.util.Pair;
+
/** A StoneTray is a collection of positioned objects (for example {@link Stone}s or {@link StoneSet}s. */
-public abstract class StoneTray<E extends Sizeable> {
+public class StoneTray<E extends Sizeable> implements Iterable<Pair<E, Position>> {
protected List<E> objects;
protected List<Position> positions;
@@ -27,5 +32,18 @@ public abstract class StoneTray<E extends Sizeable> {
public void drop(E object, Position position) {
}
+
+
+ public Position getPosition (E object) {
+
+
+ }
+
+
+ @Override
+ public Iterator<Pair<E, Position>> iterator() {
+ // TODO Auto-generated method stub
+ return null;
+ }
}