summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;