summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-04 15:20:52 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-04 15:20:52 +0200
commita0a32b4f2df05b973c3f235508ef52b510873e19 (patch)
tree849bfb2c7de3a043f8cb5e08cd53624b99e881be /src/jrummikub/control
parent9f121ca3367e6c2bc9d2cbb1c71494489b5205bc (diff)
downloadJRummikub-a0a32b4f2df05b973c3f235508ef52b510873e19.tar
JRummikub-a0a32b4f2df05b973c3f235508ef52b510873e19.zip
Added control classes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@101 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/GameControl.java34
-rw-r--r--src/jrummikub/control/TurnControl.java34
-rw-r--r--src/jrummikub/control/TurnTimer.java5
3 files changed, 73 insertions, 0 deletions
diff --git a/src/jrummikub/control/GameControl.java b/src/jrummikub/control/GameControl.java
new file mode 100644
index 0000000..3b9d4bb
--- /dev/null
+++ b/src/jrummikub/control/GameControl.java
@@ -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() {
+
+ }
+}
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
new file mode 100644
index 0000000..9bedfae
--- /dev/null
+++ b/src/jrummikub/control/TurnControl.java
@@ -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;
+ }
+}
diff --git a/src/jrummikub/control/TurnTimer.java b/src/jrummikub/control/TurnTimer.java
new file mode 100644
index 0000000..701e892
--- /dev/null
+++ b/src/jrummikub/control/TurnTimer.java
@@ -0,0 +1,5 @@
+package jrummikub.control;
+
+public class TurnTimer {
+
+}