Ejemplo n.º 1
0
        public void CheckChow(object sender, EventArgs e)
        {
            ChowBrandCheck cbc = new ChowBrandCheck((BrandPlayer[])sender);

            cbc.ShowDialog();
            chat.SendObject(cbc.SelectBrandPlayer);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 玩家按下吃事件呼叫
        /// </summary>
        internal void chow(Brand brand)
        {
            CheckBrands c = new CheckBrands(brand, NowPlayer_removeTeam);

            if (c.Chow())
            {
                if (c.ChowLength == 1)
                {
                    PlayerSort p = new PlayerSort(c.SuccessPlayer);
                    all.chow_pong(brand, p.getPlayer);
                }
                else
                {
                    if (all.State == table.place.Down)
                    {
                        ChowBrandCheck cbc = new ChowBrandCheck(c.ChowPlayer);
                        cbc.ShowDialog();
                        PlayerSort p = new PlayerSort(cbc.SelectBrandPlayer);
                        all.chow_pong(brand, p.getPlayer);
                    }
                    else
                    {
                        chat.SendObject(c.ChowPlayer);
                    }
                }
            }
            Chow_Pong_Brand = true;
            updatePlayer_Table();
        }