From 0ef783407075008514b9e3eb9b32ea67501e4206 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Sat, 30 Apr 2011 15:45:11 +0200 Subject: =?UTF-8?q?Arrays=20zu=20Listen=20ge=C3=A4ndert,=20StoneTray=20Kla?= =?UTF-8?q?sse=20mit=20Sizeable=20Interface=20angelegt,=20Testklassen=20er?= =?UTF-8?q?zeugt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@26 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/StoneTray.java | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/jrummikub/model/StoneTray.java (limited to 'src/jrummikub/model/StoneTray.java') diff --git a/src/jrummikub/model/StoneTray.java b/src/jrummikub/model/StoneTray.java new file mode 100644 index 0000000..4a22870 --- /dev/null +++ b/src/jrummikub/model/StoneTray.java @@ -0,0 +1,31 @@ +package jrummikub.model; + +/** A StoneTray is a collection of positioned objects (for example {@link Stone}s or {@link StoneSet}s. */ +public abstract class StoneTray { + protected List objects; + protected List positions; + + /** + * Removes object from tray and returns it + * + * @param position + * position of the object that will be removed + */ + public E pickUp(Position position) { + + } + + + /** + * Adds object to the tray + * + * @param object + * object to add to Hand + * @param position + * {@link Position} to put the object + */ + public void drop(E object, Position position) { + + } + +} -- cgit v1.2.3