summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/control/TurnControl.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
index c994ca1..612597a 100644
--- a/src/jrummikub/control/TurnControl.java
+++ b/src/jrummikub/control/TurnControl.java
@@ -1,23 +1,33 @@
package jrummikub.control;
-import jrummikub.model.Hand;
+import jrummikub.model.IHand;
import jrummikub.model.ITable;
import jrummikub.util.Event;
import jrummikub.util.IEvent;
import jrummikub.view.IView;
public class TurnControl {
- private Hand hand;
+ private IHand hand;
private ITable table;
private ITurnTimer timer;
private IView view;
private Event endOfTurnEvent = new Event();
- public TurnControl(Hand hand, ITable table, IView view) {
+
+ 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() {