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

import jrummikub.model.Position;
import jrummikub.model.StoneSet;
import jrummikub.util.Event1;
import jrummikub.util.Pair;

/**
 * The view of the table, where the stone sets lie
 */
public interface ITablePanel extends IStonePanel, IClickable {
	/**
	 * Sets the stone sets lying on the table
	 * 
	 * @param stoneSets
	 *          set stone sets on the table
	 */
	public void setStoneSets(Iterable<Pair<StoneSet, Position>> stoneSets);

	/**
	 * Returns the stone collection (the panel showing the stones currently
	 * selected)
	 * 
	 * @return the stone collection
	 */
	public IStoneCollectionPanel getStoneCollectionPanel();

	/**
	 * the left connector click event is emitted when the player clicks on a left
	 * connector of a stone set on the table .
	 * 
	 * @return the event
	 */
	public Event1<StoneSet> getLeftConnectorClickEvent();

	/**
	 * the right connector click event is emitted when the player clicks on a
	 * right connector of a stone set on the table .
	 * 
	 * @return the event
	 */
	public Event1<StoneSet> getRightConnectorClickEvent();
}