Beispiel #1
0
        private void CheckUser(object sender, EventArgs e)
        {
            CPK cpk = new CPK(this, (CheckUser)sender);

            cpk.Enabled_Button((CheckUser)sender);
            cpk.Network = true;
            cpk.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// 把牌丟給玩家,看是否要吃 碰 槓 過水 胡
        /// </summary>
        internal virtual void toUser(Brand brand, bool chow, bool pong, bool kong, bool darkkong, bool win)
        {
            CPK         cpk = new CPK(this, brand);
            CheckBrands c   = new CheckBrands(brand, NowPlayer_removeTeam);
            CheckBrands w   = new CheckBrands(brand, all.NowPlayer);

            cpk.Enabled_Button(chow, pong, kong, darkkong, win);
            if (chow || pong || kong || win || darkkong)
            {
                cpk.ShowDialog();
            }
        }
Beispiel #3
0
        /// <summary>
        /// 把牌丟給玩家,看是否要吃 碰 槓 過水 胡
        /// </summary>
        internal virtual void toUser(CheckUser check)
        {
            CPK cpk = new CPK(this, check);

            CheckBrands c = new CheckBrands(check.Brand, NowPlayer_removeTeam);
            CheckBrands w = new CheckBrands(check.Brand, all.NowPlayer);

            cpk.Enabled_Button(check.Chow, check.Pong, check.Kong, check.DarkKong, check.Win);
            if (check.Chow || check.Pong || check.Kong || check.Win || check.DarkKong)
            {
                cpk.ShowDialog();
            }
        }
Beispiel #4
0
        internal void getBrand(Brand brand)
        {
            if (myTurn)
            {
                CPK cpk = new CPK(this, checkuser);
                cpk.Network = true;
                //cpk.Checkuser = checkuser;
                CheckBrands c = new CheckBrands(brand, NowPlayer_removeTeam);
                CheckBrands w = new CheckBrands(brand, all.NowPlayer);
                cpk.Enabled_Button(checkuser.Chow, checkuser.Pong, checkuser.Kong, checkuser.DarkKong, checkuser.Win);
                //if (checkuser.Chow || checkuser.Pong || checkuser.Kong || checkuser.Win || checkuser.DarkKong)
                cpk.ShowDialog();

                chat.SendObject(cpk.Checkuser);
            }
            else if (iAmServer)
            {
                chat.SendObject(all);
                makeBrand(brand);
            }
        }