summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-10 04:05:52 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-10 04:05:52 +0200
commit6e986232ff5b75465bd5dadb5975d5113039d863 (patch)
tree19009e14c059180cfb0faadf41db6893699c728e /src/jrummikub
parent1f799ad15ec258f8bf8d12ff954c29f50c2ab09e (diff)
downloadJRummikub-6e986232ff5b75465bd5dadb5975d5113039d863.tar
JRummikub-6e986232ff5b75465bd5dadb5975d5113039d863.zip
GameControl gecommented
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@216 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/control/GameControl.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jrummikub/control/GameControl.java b/src/jrummikub/control/GameControl.java
index ee87bd5..9cacb56 100644
--- a/src/jrummikub/control/GameControl.java
+++ b/src/jrummikub/control/GameControl.java
@@ -4,12 +4,20 @@ import jrummikub.model.GameState;
import jrummikub.util.IListener;
import jrummikub.view.IView;
+/**
+ * Controls a Game, at some point including all Rounds, starts new Rounds
+ */
public class GameControl {
final static int HAND_HEIGHT = 2;
final static int HAND_WIDTH = 14;
private IView view;
private RoundControl roundControl;
+ /**
+ * Constructor
+ *
+ * @param view
+ */
public GameControl(IView view) {
this.view = view;
view.getPlayerPanel().getHandPanel().setHandHeight(HAND_HEIGHT);
@@ -29,6 +37,9 @@ public class GameControl {
});
}
+ /**
+ * Game gets started by initializing the first Round
+ */
public void startGame() {
startRound();
}