summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/IPlayer.java
blob: 25471b8d3a00d871b88c4577015796d92d180848 (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.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
	 * 
	 */
	void setLaidOut(boolean laidOut);
}