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

/**
 * Interface for the {@link Table} model
 */
public interface ITable extends IStoneTray<StoneSet> {

	/**
	 * Removes {@link Stone} from the Table
	 * 
	 * @param stone
	 *          stone to pick up
	 */
	public void pickUpStone(Stone stone);

	/**
	 * Tests the Table for rule conflicts by checking all the {@link StoneSet}
	 * 
	 * @return whether all sets on the table are valid
	 */
	public boolean isValid();

	/**
	 * Finds the {@link StoneSet} containing the given {@link Stone}
	 * 
	 * @param stone
	 *          stone whose set we're searching
	 * @return the set containing the stone or null if no set was found
	 */
	StoneSet findStoneSet(Stone stone);

}