summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/Table.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model/Table.java')
-rw-r--r--src/jrummikub/model/Table.java28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/jrummikub/model/Table.java b/src/jrummikub/model/Table.java
index 923a6a1..8a1b40f 100644
--- a/src/jrummikub/model/Table.java
+++ b/src/jrummikub/model/Table.java
@@ -2,9 +2,7 @@ package jrummikub.model;
/** Class administering the {@link Stone}s on the game-Table */
-public class Table {
- private StoneSet[] sets;
- private Position[] positions;
+public class Table extends StoneTray<StoneSet> {
// Constructor
public Table gameTable = new Table();
@@ -15,17 +13,7 @@ public class Table {
* @param position
* {@link Position} of the selected {@link Stone}
*/
- public Stone pickUp(Position position) {
-
- }
-
- /**
- * Removes a {@link StoneSet} from the Table and returns it
- *
- * @param position
- * {@link Position} of the selected {@link StoneSet}
- */
- public StoneSet pickUpSet(Position position) {
+ public Stone pickUpStone(Position position) {
}
@@ -41,18 +29,6 @@ public class Table {
}
- /**
- * Adds {@link StoneSet} to Table
- *
- * @param position
- * Specifies {@link Position} to put the {@link StoneSet}
- * @param stones
- * The {@link StoneSet} to add to the Table
- */
- public void drop(Position position, StoneSet stones) {
-
- }
-
/** Tests the Table for rule conflicts by checking all the {@link StoneSets} */
public boolean isValid() {