diff options
Diffstat (limited to 'src/jrummikub/model/Table.java')
-rw-r--r-- | src/jrummikub/model/Table.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/jrummikub/model/Table.java b/src/jrummikub/model/Table.java index 6a0a826..923a6a1 100644 --- a/src/jrummikub/model/Table.java +++ b/src/jrummikub/model/Table.java @@ -1,5 +1,7 @@ package jrummikub.model; +/** Class administering the {@link Stone}s on the game-Table */ + public class Table { private StoneSet[] sets; private Position[] positions; @@ -7,22 +9,51 @@ public class Table { // Constructor public Table gameTable = new Table(); + /** + * Removes {@link Stone} from the Table and returns it + * + * @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) { } + /** + * Removes a part of a {@link StoneSet} from the Table and returns it + * + * @param from + * Start {@link Position} of the range + * @param to + * End {@link Position} of the range + */ public StoneSet pickUpRange(Position from, Position to) { } + /** + * 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() { } |