summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-04-30 17:20:14 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-04-30 17:20:14 +0200
commitbc774c639bb7eef4d6af341012c6696e0bda2fcd (patch)
tree51af0edd5324284803f40495a822f4b38762e6a0 /src/jrummikub
parente4bc09a6ad783b3f858644ab32947db4dbd025fa (diff)
downloadJRummikub-bc774c639bb7eef4d6af341012c6696e0bda2fcd.tar
JRummikub-bc774c639bb7eef4d6af341012c6696e0bda2fcd.zip
StoneSet, nicht fertig, aber kompilierfähig
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@28 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/model/StoneSet.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/jrummikub/model/StoneSet.java b/src/jrummikub/model/StoneSet.java
index 706ed3b..d949187 100644
--- a/src/jrummikub/model/StoneSet.java
+++ b/src/jrummikub/model/StoneSet.java
@@ -1,13 +1,24 @@
package jrummikub.model;
+import java.util.List;
+
import jrummikub.util.Pair;
/** Class managing {@link Stone}s joined together to form sets */
public class StoneSet {
private List<Stone> stones;
+ public StoneSet(Stone stone) {
+
+ }
+
+ public StoneSet(List<Stone> stones) {
+
+ }
+
/** Test for rule conflict within the StoneSet */
public boolean isValid() {
+ return false;
}
@@ -19,6 +30,14 @@ public class StoneSet {
* Splitting {@link Position}
*/
public Pair<StoneSet, StoneSet> splitAt(int position) {
+ //Exception falls falscher index
+ if (position==0||position==stones.size()){
+
+ }
+ else {
+
+ }
+ return null;
}
@@ -29,7 +48,16 @@ public class StoneSet {
* StoneSet to be joined to active StoneSet
*/
public StoneSet join(StoneSet other) {
+ return null;
+
+ }
+
+ public int size() {
+ return stones.size();
+ }
+ public Stone get(int i) {
+ return stones.get(i);
}
}