Added control classes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@101 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
9f121ca336
commit
a0a32b4f2d
3 changed files with 73 additions and 0 deletions
34
src/jrummikub/control/GameControl.java
Normal file
34
src/jrummikub/control/GameControl.java
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
package jrummikub.control;
|
||||||
|
|
||||||
|
import jrummikub.model.GameState;
|
||||||
|
import jrummikub.view.IView;
|
||||||
|
|
||||||
|
public class GameControl {
|
||||||
|
private GameState gameState;
|
||||||
|
private IView view;
|
||||||
|
|
||||||
|
public GameControl(GameState gameState, IView view) {
|
||||||
|
this.gameState = gameState;
|
||||||
|
this.view = view;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endOfTurn() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ruleCheck() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void resetTable() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void preparePlayerTurn() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dealStone() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
34
src/jrummikub/control/TurnControl.java
Normal file
34
src/jrummikub/control/TurnControl.java
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
package jrummikub.control;
|
||||||
|
|
||||||
|
|
||||||
|
import jrummikub.model.Hand;
|
||||||
|
import jrummikub.model.Table;
|
||||||
|
import jrummikub.util.Event;
|
||||||
|
import jrummikub.util.IEvent;
|
||||||
|
import jrummikub.view.IView;
|
||||||
|
|
||||||
|
public class TurnControl {
|
||||||
|
private Hand hand;
|
||||||
|
private Table table;
|
||||||
|
private TurnTimer timer;
|
||||||
|
private IView view;
|
||||||
|
private Event endOfTurnEvent = new Event();
|
||||||
|
|
||||||
|
public TurnControl(Hand hand, Table table, IView view) {
|
||||||
|
this.hand = hand;
|
||||||
|
this.table = table;
|
||||||
|
this.view = view;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void sortByValue() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void sortByColor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEvent getEndOfTurnEvent() {
|
||||||
|
return endOfTurnEvent;
|
||||||
|
}
|
||||||
|
}
|
5
src/jrummikub/control/TurnTimer.java
Normal file
5
src/jrummikub/control/TurnTimer.java
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
package jrummikub.control;
|
||||||
|
|
||||||
|
public class TurnTimer {
|
||||||
|
|
||||||
|
}
|
Reference in a new issue