Started implementing mock views
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@110 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
8199274c9d
commit
d837354c56
3 changed files with 115 additions and 3 deletions
|
@ -1,24 +1,34 @@
|
|||
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() {
|
||||
|
||||
|
|
Reference in a new issue