示例#1
0
 public GameScreen(Game newGame, Groan menuRef)
 {
     InitializeComponent();
     cpuController    = new Random();
     this.menuRef     = menuRef;
     graPaper         = dicePictureBox.CreateGraphics();
     this.currentGame = newGame;
     currentGame.initDie(graPaper);
     difficulty            = currentGame.getDifficulty();
     objectiveLabel.Text   = "First Player to " + currentGame.getTotalScore() + " wins!";
     player1NameLabel.Text = currentGame.getPlayerOneName();
     player2NameLabel.Text = currentGame.getPlayerTwoName();
 }
示例#2
0
 Groan menuRef;                       //References the main menu
 public GameSetup(Groan menuForm)
 {
     this.menuRef = menuForm;
     InitializeComponent();
 }