示例#1
0
        public DiceView(DiceController c)
        {
            InitializeComponent();

            controller        = c;
            lblDice.BackColor = Color.White;
        }
        public DiceView(DiceController c)
        {
            InitializeComponent();

              controller = c;
              lblDice.BackColor = Color.White;
        }
        public YahtzeeController(GameController c)
        {
            gameController = c;
            model          = new YahtzeeModel(this);
            view           = new YahtzeeView(this);

            dices = new DiceController[model.AmountOfDice];

            for (int i = 0; i < dices.Length; i++)
            {
                dices[i] = new DiceController();
            }
        }
        public YahtzeeController(GameController c)
        {
            gameController = c;
              model = new YahtzeeModel(this);
              view = new YahtzeeView(this);

              dices = new DiceController[model.AmountOfDice];

              for (int i = 0; i < dices.Length; i++)
              {
            dices[i] = new DiceController();
              }
        }
示例#5
0
        public DiceUI(DiceController controller)
        {
            this.controller = controller;
            InitializeComponent();

            aces[0]    = true;
            twos[0]    = true;
            threes[0]  = true;
            fours[0]   = true;
            fives[0]   = true;
            sixes[0]   = true;
            TOAK[0]    = true;
            FOAK[0]    = true;
            SS[0]      = true;
            LS[0]      = true;
            FH[0]      = true;
            Chance[0]  = true;
            Yathzee[0] = true;
            Bonus[0]   = true;
            aces[1]    = true;
            twos[1]    = true;
            threes[1]  = true;
            fours[1]   = true;
            fives[1]   = true;
            sixes[1]   = true;
            TOAK[1]    = true;
            FOAK[1]    = true;
            SS[1]      = true;
            LS[1]      = true;
            FH[1]      = true;
            Chance[1]  = true;
            Yathzee[1] = true;
            Bonus[1]   = true;

            firstP[0] = 0;
            secP[0]   = 0;
            totP[0]   = 0;
            firstP[1] = 0;
            secP[1]   = 0;
            totP[1]   = 0;
        }
示例#6
0
 public DiceUI(DiceController controller)
 {
     this.controller = controller;
     InitializeComponent();
 }
示例#7
0
 public DiceModel(DiceController c)
 {
     controller = c;
     random     = new Random();
 }
 public DiceModel(DiceController c)
 {
     controller = c;
       random = new Random();
 }