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

/** Class administering the {@link Stone}s on the game-Table */

public class Table {
	private StoneSet[] sets;
	private Position[] positions;

	// Constructor
	public Table gameTable = new Table();

	/**
	 * Removes {@link Stone} from the Table and returns it
	 * 
	 * @param position
	 *            {@link Position} of the selected {@link Stone}
	 */
	public Stone pickUp(Position position) {

	}

	/**
	 * Removes a {@link StoneSet} from the Table and returns it
	 * 
	 * @param position
	 *            {@link Position} of the selected {@link StoneSet}
	 */
	public StoneSet pickUpSet(Position position) {

	}

	/**
	 * Removes a part of a {@link StoneSet} from the Table and returns it
	 * 
	 * @param from
	 *            Start {@link Position} of the range
	 * @param to
	 *            End {@link Position} of the range
	 */
	public StoneSet pickUpRange(Position from, Position to) {

	}

	/**
	 * Adds {@link StoneSet} to Table
	 * 
	 * @param position
	 *            Specifies {@link Position} to put the {@link StoneSet}
	 * @param stones
	 *            The {@link StoneSet} to add to the Table
	 */
	public void drop(Position position, StoneSet stones) {

	}

	/** Tests the Table for rule conflicts by checking all the {@link StoneSets} */
	public boolean isValid() {

	}
}