blob: 612597ae9a619b5248a5b9e6e2e65b669bdb52fb (
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
|
package jrummikub.control;
import jrummikub.model.IHand;
import jrummikub.model.ITable;
import jrummikub.util.Event;
import jrummikub.util.IEvent;
import jrummikub.view.IView;
public class TurnControl {
private IHand hand;
private ITable table;
private ITurnTimer timer;
private IView view;
private Event endOfTurnEvent = new Event();
public TurnControl(IHand hand, ITable table, IView view) {
this.hand = hand;
this.table = table;
this.view = view;
}
/** Test only constructor **/
TurnControl(IHand hand, ITable table, IView view, ITurnTimer testTimer) {
// TODO: change timer to interface
this.hand = hand;
this.table = table;
this.view = view;
this.timer = testTimer;
}
private void sortByValue() {
}
private void sortByColor() {
}
public IEvent getEndOfTurnEvent() {
return endOfTurnEvent;
}
}
|