summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-29 20:36:26 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-29 20:36:26 +0200
commite4a1246f01c2a017042a2a80cc2e9a1e6b4bbd51 (patch)
tree5bdbf85e34096e222120996c2b213c8184ec695e /src/jrummikub/model
parent65d08ea450ac96ce35d1512707850524d805c790 (diff)
downloadJRummikub-e4a1246f01c2a017042a2a80cc2e9a1e6b4bbd51.tar
JRummikub-e4a1246f01c2a017042a2a80cc2e9a1e6b4bbd51.zip
Viele Warnings durch Kommentare beseitigt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@312 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/StoneHeap.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jrummikub/model/StoneHeap.java b/src/jrummikub/model/StoneHeap.java
index 12dcc21..241cbc7 100644
--- a/src/jrummikub/model/StoneHeap.java
+++ b/src/jrummikub/model/StoneHeap.java
@@ -15,8 +15,13 @@ import java.util.Random;
public class StoneHeap {
List<Stone> heap;
private Random generator = new Random();
-
- /** Creates 106 Stones according to standard rules */
+
+ /**
+ * Creates 106 Stones according to standard rules
+ *
+ * @param gameSettings
+ * (for number of sets/jokers, colors etc.)
+ * */
public StoneHeap(GameSettings gameSettings) {
heap = new ArrayList<Stone>();
for (int i = 1; i <= 13; i++) {
@@ -35,7 +40,7 @@ public class StoneHeap {
jokerColors.set(3, temp);
int jokersLeft = gameSettings.getJokerNumber();
- done : while(true) {
+ done: while (true) {
for (StoneColor c : jokerColors) {
if (jokersLeft == 0)
break done;