Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 6
0
        public YahtzeeView(YahtzeeController c)
        {
            InitializeComponent();

              controller = c;
        }
Ejemplo n.º 7
0
        public YahtzeeView(YahtzeeController c)
        {
            InitializeComponent();

            controller = c;
        }
Ejemplo n.º 8
0
 public YahtzeeModel(YahtzeeController c)
 {
     controller = c;
 }
Ejemplo n.º 9
0
        public YahtzeeView(YahtzeeController controller)
        {
            _controller = controller;

            InitializeComponent();
        }
 public GameController()
 {
     yahtzeeController = new YahtzeeController(this);
       scoreboardController = new ScoreboardController();
       view = new GameView(this);
 }
Ejemplo n.º 11
0
 public ScoreboardController(YahtzeeController y)
 {
     view = new ScoreboardView(this);
     model = new ScoreboardModel();
     yahtzeeController = y;
 }
Ejemplo n.º 12
0
 public TeerlingController(YahtzeeController yController)
 {
     _view = new TeerlingView(this);
     _model = new TeerlingModel();
     _yahtzeeController = yController;
 }
Ejemplo n.º 13
0
 public YahtzeeView(YahtzeeController yahtzeeController)
 {
     this.yahtzeeController = yahtzeeController;
     InitializeComponent();
 }
Ejemplo n.º 14
0
 public YahtzeeView(YahtzeeController yahtzeeController)
 {
     this.yahtzeeController = yahtzeeController;
     InitializeComponent();
 }
Ejemplo n.º 15
0
 public YahtzeeModel(YahtzeeController c)
 {
     controller = c;
 }
Ejemplo n.º 16
0
 public GameController()
 {
     yahtzeeController    = new YahtzeeController(this);
     scoreboardController = new ScoreboardController();
     view = new GameView(this);
 }