summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/view/MockGameListPanel.java
blob: 58af55337033e3fff8f7487e2b58cc62b8d06114 (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
package jrummikub.view;

import java.util.ArrayList;
import java.util.List;

import jrummikub.util.GameData;
import jrummikub.util.IEvent;
import jrummikub.util.IEvent1;
import jrummikub.util.MockEvent;
import jrummikub.util.MockEvent1;

/** */
public class MockGameListPanel implements IGameListPanel {
	/**	*/
	public MockEvent1<GameData> joinEvent = new MockEvent1<GameData>();
	/** */
	public MockEvent openNewGameEvent = new MockEvent();
	/** */
	public MockEvent cancelEvent = new MockEvent();
	/** */
	public List<GameData> gameList = new ArrayList<GameData>();
	/** */
	public String channelName;

	@Override
	public IEvent getOpenNewGameEvent() {
		return openNewGameEvent;
	}

	@Override
	public IEvent getCancelEvent() {
		return cancelEvent;
	}

	@Override
	public IEvent1<GameData> getJoinEvent() {
		return joinEvent;
	}

	@Override
	public void setChannelName(String name) {
		channelName = name;
	}

	@Override
	public void setGameList(List<GameData> games) {
		gameList = games;
	}

}