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

import java.util.UUID;

import jrummikub.model.GameSettings;
import jrummikub.util.IEvent;
import jrummikub.util.IEvent1;

public interface IGameListPanel {
	public static class GameData {
		private UUID gameID;
		private String host;
		private GameSettings gameSettings;

		public GameData(UUID gameID, GameSettings settings) {
			this(gameID, settings, null);
		}

		public GameData(UUID gameID, GameSettings settings, String host) {
			this.gameID = gameID;
			this.gameSettings = settings;
			this.host = host;

		}

		public void setGameSettings(GameSettings settings) {
			gameSettings = settings;
		}

		public GameSettings getGameSettings() {
			return gameSettings;
		}

		public String getHost() {
			return host;
		}

		public UUID getGameID() {
			return gameID;
		}
	}

	public IEvent getOpenNewGameEvent();

	public IEvent getCancelEvent();

	public IEvent1<GameData> getJoinEvent();

	public void removeGame(GameData game);

	public void addGame(GameData game);

	public void setChannelName(String name);
}