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

import jrummikub.model.Position;
import jrummikub.model.Stone;
import jrummikub.util.Pair;

/**
 * The view for a player's hand that displays his stones
 */
public interface IHandPanel extends IStonePanel, IClickable {
	/**
	 * Set the player's stones to display on the board
	 * 
	 * @param stones
	 *            the stones
	 */
	public void setStones(Iterable<Pair<Stone, Position>> stones);

	/**
	 * Set the number of stones that fit on the hand horizontally
	 * 
	 * @param width
	 *            number of stones
	 */
	public void setHandWidth(int width);

	/**
	 * Set the number of stones that fit on the hand vertically
	 * 
	 * @param height
	 *            number of stones
	 */
	public void setHandHeight(int height);
}