diff options
Diffstat (limited to 'src/jrummikub/control/network')
-rw-r--r-- | src/jrummikub/control/network/NetworkControl.java | 8 | ||||
-rw-r--r-- | src/jrummikub/control/network/NetworkGameControl.java | 15 |
2 files changed, 1 insertions, 22 deletions
diff --git a/src/jrummikub/control/network/NetworkControl.java b/src/jrummikub/control/network/NetworkControl.java index bf92ab5..92837bd 100644 --- a/src/jrummikub/control/network/NetworkControl.java +++ b/src/jrummikub/control/network/NetworkControl.java @@ -362,14 +362,6 @@ public class NetworkControl { private void createGameControl(GameSettings settings, boolean host) { gameControl = new NetworkGameControl(settings, saveControl, view, connectionControl, host); - gameControl.getBackEvent().add(new IListener() { - @Override - public void handle() { - view.setBottomPanel(BottomPanelType.START_GAME_PANEL); - abortControls(); - view.showGameListPanel(true); - } - }); gameControl.getEndOfGameEvent().add(new IListener() { @Override public void handle() { diff --git a/src/jrummikub/control/network/NetworkGameControl.java b/src/jrummikub/control/network/NetworkGameControl.java index a277cd3..90dd1b3 100644 --- a/src/jrummikub/control/network/NetworkGameControl.java +++ b/src/jrummikub/control/network/NetworkGameControl.java @@ -7,8 +7,6 @@ import jrummikub.model.GameSettings; import jrummikub.model.IRoundState; import jrummikub.model.PlayerSettings; import jrummikub.model.PlayerSettings.Type; -import jrummikub.util.Event; -import jrummikub.util.IEvent; import jrummikub.util.IListener; import jrummikub.util.IListener1; import jrummikub.view.IView; @@ -20,7 +18,6 @@ import jrummikub.view.IView.BottomPanelType; public class NetworkGameControl extends GameControl { private IConnectionControl connectionControl; private boolean host; - private Event backEvent = new Event(); /** * Creates new network game control @@ -62,16 +59,6 @@ public class NetworkGameControl extends GameControl { })); } - /** - * The back event is emitted when the network game has ended and the player - * wants to return to the game list - * - * @return the event - */ - public IEvent getBackEvent() { - return backEvent; - } - @Override protected void startRound() { connections.add(connectionControl.getRoundStartEvent().add(new IListener() { @@ -109,7 +96,7 @@ public class NetworkGameControl extends GameControl { @Override public void handle() { abortGame(); - backEvent.emit(); + endOfGameEvent.emit(); } })); connections.add(view.getEndProgramEvent().add(new IListener() { |