summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/IPlayer.java
blob: a72b002e9750692bfc61d1ebd9f174f787e5b6a5 (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
package jrummikub.model;

import java.io.Serializable;

/**
 * Interface for {@link Player} model
 */
public interface IPlayer extends Serializable {

	/**
	 * Get the current hand of the player
	 * 
	 * @return the player's hand
	 */
	public IHand getHand();

	/**
	 * Set the current hand of the player
	 * 
	 * @param hand
	 *          the new hand
	 */
	public void setHand(IHand hand);

	/**
	 * Has the player laid out yet?
	 * 
	 * @return if the player has laid out
	 */
	public boolean getLaidOut();

	/**
	 * Returns the player settings
	 * 
	 * @return the player settings
	 */
	public PlayerSettings getPlayerSettings();

	/**
	 * Set if the player laid out
	 * 
	 * @param laidOut
	 *          the player laid out
	 * 
	 */
	public void setLaidOut(boolean laidOut);

	public boolean wasLastTurnInvalid();

	public void setLastTurnInvalid(boolean value);

	public int getLastTurnStoneCount();

	public void setLastTurnStoneCount(int value);
}