blob: 0e900780e5ebbb50709c00140b007f1134bae695 (
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
|
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().setGameSettings(settings);
}
public void startGameOffer() {
view.showSettingsPanel(true);
}
}
|