Example #1
0
 //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;
 }
Example #2
0
 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);
 }
Example #3
0
        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;
        }
Example #5
0
        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;
        }
Example #7
0
        public YahtzeeView(YahtzeeController c)
        {
            InitializeComponent();

            controller = c;
        }
 public YahtzeeModel(YahtzeeController c)
 {
     controller = c;
 }
Example #9
0
        public YahtzeeView(YahtzeeController controller)
        {
            _controller = controller;

            InitializeComponent();
        }
 public GameController()
 {
     yahtzeeController = new YahtzeeController(this);
       scoreboardController = new ScoreboardController();
       view = new GameView(this);
 }
Example #11
0
 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;
 }
Example #13
0
 public YahtzeeView(YahtzeeController yahtzeeController)
 {
     this.yahtzeeController = yahtzeeController;
     InitializeComponent();
 }
Example #14
0
 public YahtzeeView(YahtzeeController yahtzeeController)
 {
     this.yahtzeeController = yahtzeeController;
     InitializeComponent();
 }
 public YahtzeeModel(YahtzeeController c)
 {
     controller = c;
 }
Example #16
0
 public GameController()
 {
     yahtzeeController    = new YahtzeeController(this);
     scoreboardController = new ScoreboardController();
     view = new GameView(this);
 }