blob: 8d3e8c87ef7bd39cb12e1b7337a3a9ea6f808dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package jrummikub.control.network;
import jrummikub.model.GameSettings;
import jrummikub.view.ISettingsPanel.SettingsMode;
import jrummikub.view.IView;
public class GameOfferControl {
private ConnectionControl connectionControl;
private GameSettings settings;
private IView view;
public GameOfferControl(ConnectionControl connectionControl,
GameSettings settings, IView view) {
this.connectionControl = connectionControl;
this.settings = settings;
this.view = view;
view.getSettingsPanel().setSettingsMode(SettingsMode.NETWORK_OFFER);
view.getSettingsPanel().enableAddPlayerButton(false);
view.getSettingsPanel().setGameSettings(settings);
}
public void startGameOffer() {
view.showSettingsPanel(true);
}
}
|