summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/control/RoundControl.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java
index c1997bb..e9e9453 100644
--- a/src/jrummikub/control/RoundControl.java
+++ b/src/jrummikub/control/RoundControl.java
@@ -64,12 +64,18 @@ public class RoundControl {
deal();
connections.add(view.getStartTurnEvent().add(new IListener() {
-
@Override
public void handle() {
startTurn();
}
}));
+
+ connections.add(view.getPlayerPanel().getRedealEvent().add(new IListener() {
+ @Override
+ public void handle() {
+ redeal();
+ }
+ }));
prepareTurn();
}
@@ -314,4 +320,11 @@ public class RoundControl {
public IEvent getRestartRoundEvent() {
return restartRoundEvent;
}
+
+ private void redeal() {
+ for (Connection c : connections) {
+ c.remove();
+ }
+ restartRoundEvent.emit();
+ }
}