blob: 6a1850206c326196b9d0975b5c463c85f3b139be (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
package jrummikub.view;
import jrummikub.util.IEvent;
import jrummikub.util.IEvent1;
import jrummikub.util.LoginData;
/**
* LoginPanel for network game
*
*/
public interface ILoginPanel {
/**
* Player has offered all information and wants to connect
*
* @return LoginData username, server, password, channel
*/
public IEvent1<LoginData> getLoginEvent();
/**
* Emitted when the user cancels the login process
*
* @return the event
*/
public IEvent getCancelEvent();
/**
* Emitted when the user presses the use dedicated server button
*
* @return the event
*/
IEvent1<String> getUseDedicatedServerEvent();
/**
* Set the server info in the login panel
*
* @param server
* the server's hostname
*/
void setServer(String server);
/**
* Set the channel to use
*
* @param channel
* channel to use
*/
void setChannel(String channel);
/**
* Sets whether the dedicated server is running
*
* @param running
* whether the dedicated server is running
*/
void setDedicatedServerRunning(boolean running);
}
|