diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-04-30 15:45:11 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-04-30 15:45:11 +0200 |
commit | 0ef783407075008514b9e3eb9b32ea67501e4206 (patch) | |
tree | 38c3ea0dcb950b88e7e08c67d6bbad57b9e73e38 /src/jrummikub/model/StoneTray.java | |
parent | 59e6d9c45174b06140175b3ea35d47e0eb1651d9 (diff) | |
download | JRummikub-0ef783407075008514b9e3eb9b32ea67501e4206.tar JRummikub-0ef783407075008514b9e3eb9b32ea67501e4206.zip |
Arrays zu Listen geƤndert, StoneTray Klasse mit Sizeable Interface angelegt, Testklassen erzeugt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@26 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/StoneTray.java')
-rw-r--r-- | src/jrummikub/model/StoneTray.java | 31 |
1 files changed, 31 insertions, 0 deletions
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<E extends Sizeable> { + protected List<E> objects; + protected List<Position> 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) { + + } + +} |