summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 00:01:24 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 00:01:24 +0200
commit6cac00762bce24c3997a9e4958419013b60c4be2 (patch)
tree2a966d01918afe29f5cc9239a9cd265caa85f3eb
parent16da68b0ae641f5c3050d4c2a723d2b46d97b8c7 (diff)
downloadJRummikub-6cac00762bce24c3997a9e4958419013b60c4be2.tar
JRummikub-6cac00762bce24c3997a9e4958419013b60c4be2.zip
Added some documentation
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@134 72836036-5685-4462-b002-a69064685172
-rw-r--r--src/jrummikub/view/ITablePanel.java2
-rw-r--r--src/jrummikub/view/IView.java16
-rw-r--r--src/jrummikub/view/impl/HandPanel.java1
3 files changed, 16 insertions, 3 deletions
diff --git a/src/jrummikub/view/ITablePanel.java b/src/jrummikub/view/ITablePanel.java
index 5c4198c..d146ca3 100644
--- a/src/jrummikub/view/ITablePanel.java
+++ b/src/jrummikub/view/ITablePanel.java
@@ -1,7 +1,5 @@
package jrummikub.view;
-import java.util.Map;
-
import jrummikub.model.Position;
import jrummikub.model.StoneSet;
import jrummikub.util.Event1;
diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java
index 115308d..d69d942 100644
--- a/src/jrummikub/view/IView.java
+++ b/src/jrummikub/view/IView.java
@@ -54,9 +54,25 @@ public interface IView {
*/
public IEvent getStartTurnEvent();
+ /**
+ * Enables or disables the panel shown when a player has won
+ *
+ * @param enable
+ * enable/disable
+ */
void enableWinPanel(boolean enable);
+ /**
+ * The quit event is emitted when the player wants to quit the game
+ *
+ * @return the event
+ */
IEvent getQuitEvent();
+ /**
+ * The new game event is emitted when the player wants to start a new game
+ *
+ * @return the event
+ */
IEvent getNewGameEvent();
}
diff --git a/src/jrummikub/view/impl/HandPanel.java b/src/jrummikub/view/impl/HandPanel.java
index a2d643c..b68a1d5 100644
--- a/src/jrummikub/view/impl/HandPanel.java
+++ b/src/jrummikub/view/impl/HandPanel.java
@@ -11,7 +11,6 @@ import java.awt.event.ComponentEvent;
import java.awt.image.BufferedImage;
import java.util.Collection;
import java.util.Collections;
-import java.util.Map;
import javax.swing.ImageIcon;
import javax.swing.border.MatteBorder;