GameControl gecommented

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@216 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Ida Massow 2011-05-10 04:05:52 +02:00
parent 1f799ad15e
commit 6e986232ff

View file

@ -4,12 +4,20 @@ import jrummikub.model.GameState;
import jrummikub.util.IListener; import jrummikub.util.IListener;
import jrummikub.view.IView; import jrummikub.view.IView;
/**
* Controls a Game, at some point including all Rounds, starts new Rounds
*/
public class GameControl { public class GameControl {
final static int HAND_HEIGHT = 2; final static int HAND_HEIGHT = 2;
final static int HAND_WIDTH = 14; final static int HAND_WIDTH = 14;
private IView view; private IView view;
private RoundControl roundControl; private RoundControl roundControl;
/**
* Constructor
*
* @param view
*/
public GameControl(IView view) { public GameControl(IView view) {
this.view = view; this.view = view;
view.getPlayerPanel().getHandPanel().setHandHeight(HAND_HEIGHT); view.getPlayerPanel().getHandPanel().setHandHeight(HAND_HEIGHT);
@ -29,6 +37,9 @@ public class GameControl {
}); });
} }
/**
* Game gets started by initializing the first Round
*/
public void startGame() { public void startGame() {
startRound(); startRound();
} }