public GameController() { rpsls = new RPSLSController(this, amountOfPlayers); // 2de parameter = amount of players scoreboards = new ScoreBoardController[amountOfPlayers]; for (int i = 0; i < amountOfPlayers; i++) { scoreboards[i] = new ScoreBoardController(this, pointsRequiredForSet); // 2de parameter = amount of points nodig voor een set te winnen } view = new GameView(this); }
public GameController() { rpsls = new RPSLSController(this, amountOfPlayers); // 2de parameter = amount of players scoreboards = new ScoreBoardController[amountOfPlayers]; for (int i = 0; i < amountOfPlayers; i++) { scoreboards[i] = new ScoreBoardController(this, pointsRequiredForSet); // 2de parameter = amount of points nodig voor een set te winnen } view = new GameView(this); }
public ScoreBoardModel(ScoreBoardController c, int pointsRequiredForSetParameter) { controller = c; pointsRequiredForSet = pointsRequiredForSetParameter; }
public ScoreBoardView(ScoreBoardController c) { InitializeComponent(); controller = c; }
public ScoreBoardView(ScoreBoardController c) { InitializeComponent(); controller = c; }
public ScoreBoardModel(ScoreBoardController c, int pointsRequiredForSetParameter) { controller = c; pointsRequiredForSet = pointsRequiredForSetParameter; }