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

import java.util.UUID;

import jrummikub.util.IEvent;
import jrummikub.util.IEvent1;

public interface IGameListPanel {
	public static class GameData {
		private UUID gameID;
		private String host;
		private int currentPlayerCount = 0;
		private int maxPlayerCount = 0;

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

		}

		public void setCurrentPlayerCount(int i) {
			currentPlayerCount = i;
		}

		public int getCurrentPlayerCount() {
			return currentPlayerCount;
		}

		public void setMaxPlayerCount(int i) {
			maxPlayerCount = i;
		}

		public int getMaxPlayerCount() {
			return maxPlayerCount;
		}

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