summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/IGameListPanel.java
blob: 47de90e5ae4162aaa19b59d7e06620772e3640f7 (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
package jrummikub.view;

import java.util.List;

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();

	/**
	 * Sets the channel name
	 * 
	 * @param name
	 *            channel name
	 */
	public void setChannelName(String name);

	/**
	 * Set the games (host and player count) into the game list
	 * 
	 * @param games
	 *            list of game data
	 */
	public void setGameList(List<GameData> games);
}