summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/Table.java
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-04-30 14:47:42 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-04-30 14:47:42 +0200
commit1a42f934ac381cf3b75225f6fd0d55f7aa6d3d74 (patch)
tree67f66c102742b635d3910e7e62052cfac6243351 /src/jrummikub/model/Table.java
parent214b5a0bd61f74210a22d9e2789bd6bb135e32ef (diff)
downloadJRummikub-1a42f934ac381cf3b75225f6fd0d55f7aa6d3d74.tar
JRummikub-1a42f934ac381cf3b75225f6fd0d55f7aa6d3d74.zip
angelegte Model Klassen, alle kommentiert
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@21 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/Table.java')
-rw-r--r--src/jrummikub/model/Table.java31
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() {
}