blob: 51d661636ceffc8d83208160f2bd2259c09ffe06 (
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
|
package jrummikub.view;
import jrummikub.util.GameData;
import jrummikub.util.IEvent;
import jrummikub.util.IEvent1;
/**
* Panel showing all offered games in the chosen channel
*/
public interface IGameListPanel {
/**
* Emitted when a new game is offered
*
* @return the event
*/
public IEvent getOpenNewGameEvent();
/**
* Emitted when the network game is canceled
*
* @return the event
*/
public IEvent getCancelEvent();
/**
* Emitted when the user chose to join an existing, open game
*
* @return the event
*/
public IEvent1<GameData> getJoinEvent();
/**
* Emitted when an open game is removed by the host
*
* @param game
* game data of the open game
*/
public void removeGame(GameData game);
/**
* Adds a game to the list of open games
*
* @param game
* game data of the new game
*/
public void addGame(GameData game);
/**
* Sets the channel name
*
* @param name
* channel name
*/
public void setChannelName(String name);
}
|