diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-29 20:36:26 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-29 20:36:26 +0200 |
commit | e4a1246f01c2a017042a2a80cc2e9a1e6b4bbd51 (patch) | |
tree | 5bdbf85e34096e222120996c2b213c8184ec695e /src | |
parent | 65d08ea450ac96ce35d1512707850524d805c790 (diff) | |
download | JRummikub-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')
-rw-r--r-- | src/jrummikub/control/ApplicationControl.java | 4 | ||||
-rw-r--r-- | src/jrummikub/control/GameControl.java | 5 | ||||
-rw-r--r-- | src/jrummikub/control/RoundControl.java | 1 | ||||
-rw-r--r-- | src/jrummikub/model/StoneHeap.java | 11 | ||||
-rw-r--r-- | src/jrummikub/view/IView.java | 17 |
5 files changed, 30 insertions, 8 deletions
diff --git a/src/jrummikub/control/ApplicationControl.java b/src/jrummikub/control/ApplicationControl.java index 582a08c..88c04e3 100644 --- a/src/jrummikub/control/ApplicationControl.java +++ b/src/jrummikub/control/ApplicationControl.java @@ -1,10 +1,6 @@ package jrummikub.control; -import java.util.ArrayList; -import java.util.List; - import jrummikub.model.GameSettings; -import jrummikub.util.Connection; import jrummikub.util.IListener; import jrummikub.util.IListener1; import jrummikub.view.IView; diff --git a/src/jrummikub/control/GameControl.java b/src/jrummikub/control/GameControl.java index 9e967c4..9eb9fa6 100644 --- a/src/jrummikub/control/GameControl.java +++ b/src/jrummikub/control/GameControl.java @@ -64,6 +64,11 @@ public class GameControl { })); } + /** + * Is emitted when the user ends the game and start a new one + * + * @return the endOfGameEvent + */ public IEvent getEndOfGameEvent() { return endOfGameEvent; } diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index 1dcd5e8..fbe5873 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -5,7 +5,6 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -import jrummikub.control.turn.HumanTurnControl; import jrummikub.control.turn.ITurnControl; import jrummikub.model.Hand; import jrummikub.model.IHand; 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; diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java index b1241c7..12475b5 100644 --- a/src/jrummikub/view/IView.java +++ b/src/jrummikub/view/IView.java @@ -112,9 +112,26 @@ public interface IView { */ public void showScorePanel(boolean show); + /** + * Is used for the PlayerPanel and ScorePanel to display a player's color + * along with the name + * + * @param color + */ public void setCurrentPlayerColor(Color color); + /** + * Is used for the PlayerPanel to display if a player has laid out along + * with the name + * + * @param hasLaidOut + */ public void setHasLaidOut(boolean hasLaidOut); + /** + * Is emitted if the player wants to end the game and start a new one + * + * @return newGameEvent + */ IEvent getNewGameEvent(); } |