From 7b80311556c1a98167b09541af0daf0afdab989e Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sat, 30 Apr 2011 21:17:14 +0200 Subject: StoneTrayTest fertig git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@33 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/StoneTray.java | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') 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 { +public class StoneTray implements Iterable> { protected List objects; protected List positions; @@ -27,5 +32,18 @@ public abstract class StoneTray { public void drop(E object, Position position) { } + + + public Position getPosition (E object) { + + + } + + + @Override + public Iterator> iterator() { + // TODO Auto-generated method stub + return null; + } } -- cgit v1.2.3