Viele Warnings durch Kommentare beseitigt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@312 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
65d08ea450
commit
e4a1246f01
8 changed files with 51 additions and 10 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue