From 6e986232ff5b75465bd5dadb5975d5113039d863 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 04:05:52 +0200 Subject: GameControl gecommented git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@216 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/GameControl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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(); } -- cgit v1.2.3