GameControl gecommented
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@216 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
1f799ad15e
commit
6e986232ff
1 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue