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(); }
Groan menuRef; //References the main menu public GameSetup(Groan menuForm) { this.menuRef = menuForm; InitializeComponent(); }