//Nieuwe instantie van Random object genereren public TeerlingController(int i, YahtzeeController y) { view = new TeerlingView(this); model = new TeerlingModel(); model.IndexOfTeerling = i; view.SetIndexOfTeerling(); yahtzeeController = y; }
public YahtzeeView(YahtzeeController c) { InitializeComponent(); controller = c; MakeScoreboard(); this.Location = new System.Drawing.Point((int)(this.Width * (controller.model.PlayerNumber / 5.0f)), (int)(this.Height * (controller.model.PlayerNumber / 5.0f))); //Elk scherm krijgt een eigen locatie. this.StartPosition = FormStartPosition.Manual; //Gebruikt de Location om de startpositie van het scherm te bepalen. this.Text = "Player " + (controller.model.PlayerNumber + 1); }
public GameController() { _view = new GameView(this); _YahtzeeController = new YahtzeeController(this); _YahtzeeController.MaxWorpen = 5; _YahtzeeController.AantalTeerlingen = 3; _YahtzeeController.AantalWorpen = 0; _YahtzeeController.Init(); }
public GameController() { view = new GameView(this); yahtzeeController = new YahtzeeController(this); yahtzeeController.MaximumAantalWorpen = 3; yahtzeeController.AantalTeerlingen = 5; yahtzeeController.initialize(); scoreController = new ScoreController(this); scoreController.MaximumAantalWorpen = 3; }
public YahtzeeView(YahtzeeController c) { InitializeComponent(); controller = c; }
public YahtzeeModel(YahtzeeController c) { controller = c; }
public YahtzeeView(YahtzeeController controller) { _controller = controller; InitializeComponent(); }
public GameController() { yahtzeeController = new YahtzeeController(this); scoreboardController = new ScoreboardController(); view = new GameView(this); }
public ScoreboardController(YahtzeeController y) { view = new ScoreboardView(this); model = new ScoreboardModel(); yahtzeeController = y; }
public TeerlingController(YahtzeeController yController) { _view = new TeerlingView(this); _model = new TeerlingModel(); _yahtzeeController = yController; }
public YahtzeeView(YahtzeeController yahtzeeController) { this.yahtzeeController = yahtzeeController; InitializeComponent(); }