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

import java.util.List;

import jrummikub.model.GameSettings;
import jrummikub.model.IPlayer;

/**
 * Side panel to show all players and relevant player information in round
 * order, game settings and stone heap size
 */
public interface ISidePanel {

	/**
	 * Sets the game settings to top of side panel
	 * 
	 * @param settings
	 *            current game settings
	 */
	public void setGameSettings(GameSettings settings);

	/**
	 * Sets the total heap size for progress bar
	 * 
	 * @param capacity
	 *            total heap size
	 */
	void setHeapCapacity(int capacity);

	/**
	 * Sets the current heap size
	 * 
	 * @param size
	 *            number of stones in current heap
	 */
	void setHeapSize(int size);

	/**
	 * Sets the player information in order of turns
	 * 
	 * @param players
	 *            players in current game
	 */
	void setPlayers(List<IPlayer> players);

}