blob: 0181a9e9d8f0c31932eb44637f7e4cada58114f7 (
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 jrummikub.util.IEvent;
/**
* The player panel that contains a player's board and other user interfaces
*/
public interface IPlayerPanel {
/**
* Sets the time the player has left for his turn
*
* @param time
* the time left
*/
public void setTimeLeft(int time);
/**
* The sort by groups event is emitted when the player wants to sort his
* stones by groups
*
* @return the event
*/
public IEvent getSortByGroupsEvent();
/**
* The sort by runs event is emitted when the player wants to sort his
* stones by runs
*
* @return the event
*/
public IEvent getSortByRunsEvent();
/**
* The end turn event is emitted when the player wants to end his turn
*
* @return the event
*/
public IEvent getEndTurnEvent();
/**
* The redeal event is emitted when the player wants to get new stones
*
* @return the event
*/
public IEvent getRedealEvent();
/**
* Sets the buttons available to end the turn
*
* @param inspectOnly
* true for each player's first turn
* @param mayRedeal
* true if the player is allowed to trigger a redealing of all
* stones
*/
public abstract void setEndTurnMode(boolean inspectOnly, boolean mayRedeal);
}
|