From bc774c639bb7eef4d6af341012c6696e0bda2fcd Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sat, 30 Apr 2011 17:20:14 +0200 Subject: =?UTF-8?q?StoneSet,=20nicht=20fertig,=20aber=20kompilierf=C3=A4hi?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@28 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/StoneSet.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src') 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 stones; + public StoneSet(Stone stone) { + + } + + public StoneSet(List 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 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); } } -- cgit v1.2.3