diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-04-30 21:17:14 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-04-30 21:17:14 +0200 |
commit | 7b80311556c1a98167b09541af0daf0afdab989e (patch) | |
tree | f3632160f6703b69632410b3035e25d8575dbb99 /src | |
parent | 482d7e7f86ed0343c0a4102562a82bd65dd52f37 (diff) | |
download | JRummikub-7b80311556c1a98167b09541af0daf0afdab989e.tar JRummikub-7b80311556c1a98167b09541af0daf0afdab989e.zip |
StoneTrayTest fertig
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@33 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r-- | src/jrummikub/model/StoneTray.java | 20 |
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; + } } |