summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}