summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/StoneTray.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model/StoneTray.java')
-rw-r--r--src/jrummikub/model/StoneTray.java31
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) {
+
+ }
+
+}