summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/IPlayer.java
blob: a88d838afe1a91f73950a79c7f8eeb67a9068a19 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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);

	/**
	 * Getter for last turn invalid
	 * 
	 * @return last turn invalid
	 */
	public boolean wasLastTurnInvalid();

	/**
	 * Sets last turn invalid
	 * 
	 * @param value
	 *            last turn invalid
	 */
	public void setLastTurnInvalid(boolean value);

	/**
	 * Gets the number of stones put on table in player's last turn
	 * 
	 * @return number of stones
	 */
	public int getLastTurnStoneCount();

	/**
	 * Sets the number of stones out on the table in player's last turn
	 * 
	 * @param value
	 *            number of stones
	 */
	public void setLastTurnStoneCount(int value);
}