Esempio n. 1
0
        /// <summary>
        /// 检测牌的点数,并显示,如果是black,直接显示
        /// </summary>
        public virtual void CheckCardPoint()
        {
            SetHandCardPoint();

            if (HandCardPoint == 0)
            {
                return;
            }
            if (HandCardPoint > 21)
            {
                StateMark.ShowLostMark();
                ShowPoint(HandCardPoint);
                Invoke("ThrowPokersWithAnim", 2f);

                return;
            }


            //当玩家有A且没有超过21点时,可能出现两个数字
            if (HaveAce)
            {
                if (HandCardPoint + 10 == 21)
                {
                    if (OnesPokerCount == 2)
                    {
                        StateMark.ShowBalckJackMark();
                    }

                    ShowPoint(21);
                }
                else if (HandCardPoint + 10 < 21)
                {
                    ShowPoint(HandCardPoint, HandCardPoint + 10);
                }
                else
                {
                    ShowPoint(HandCardPoint);
                }
            }
            else
            {
                ShowPoint(HandCardPoint);
            }
        }
Esempio n. 2
0
        public override void CheckCardPoint()
        {
            SetHandCardPoint();

            if (HandCardPoint == 0)
            {
                return;
            }

            if (HandCardPoint > 21)
            {
                StateMark.ShowLostMark();
                ShowPoint(HandCardPoint);
                return;
            }


            //当玩家有A且没有超过21点时,可能出现两个数字
            if (HaveAce)
            {
                if (HandCardPoint + 10 == 21)
                {
                    if (OnesPokerCount == 2)
                    {
                        StateMark.ShowBalckJackMark();
                    }

                    ShowPoint(21);
                }
                else if (HandCardPoint + 10 < 21)
                {
                    ShowPoint(HandCardPoint + 10);
                }
                else
                {
                    ShowPoint(HandCardPoint);
                }
            }
            else
            {
                ShowPoint(HandCardPoint);
            }
        }