//检测是否能胡牌并显示胡牌提示 public void DetectionIsTingCard(IList <int> hands) { List <int> tingCards = CardFiveStarHuPaiLogic.IsTingPai(hands); if (tingCards.Count > 0) { UIComponent.GetUiView <FiveStarMingPaiHintPanelComponent>().ShowSelfTingHuCardHint(tingCards); } }
//亮倒 public void Video_LiangDao() { IsLiangDao = true; OperationSpecialMgr.Ins.ShowSpecial(FiveStarOperateType.Liang, _OperationSpecialPoint); List <int> tingCards = CardFiveStarHuPaiLogic.IsTingPai(_VideoHands); //显示亮牌图标 UIComponent.GetUiView <FiveStarMingPaiHintPanelComponent>().Video_ShowMIngCardHint(ClientSeatIndex, tingCards); }
//获取亮倒无关牌 和可以胡的牌 返回 是否可以亮牌 public static bool IsCanLiangDaoAndHuCardsAndNoneCards(this FiveStarPlayer fiveStarPlayer) { List <int> huCards = CardFiveStarHuPaiLogic.IsTingPai(fiveStarPlayer.Hands); if (huCards.Count > 0) { fiveStarPlayer.LiangDaoNoneCards = CardFiveStarHuPaiLogic.GetLiangDaoNoneHuCards(fiveStarPlayer.Hands)[1]; fiveStarPlayer.FiveStarRoom.AddLiangDaoCanHuCards(huCards); } return(huCards.Count > 0); }
//亮倒 public void LiangDao(RepeatedField <int> hands, bool isShowSpecial = true) { IsLiangDao = true; if (isShowSpecial) { OperationSpecialMgr.Ins.ShowSpecial(FiveStarOperateType.Liang, _OperationSpecialPoint); //亮倒 特效 CardFiveStarSoundMgr.Ins.PlaySound(_user.Sex, FiveStarOperateType.Liang); //亮倒 音效 } List <int> tingCards = CardFiveStarHuPaiLogic.IsTingPai(hands); UIComponent.GetUiView <FiveStarMingPaiHintPanelComponent>().ShowMingCardHint(ClientSeatIndex, tingCards); ClearHand(); ShowLiangDaoCards(hands); CardFiveStarRoom.Ins.AddLiangDaoCanHuCards(ClientSeatIndex, tingCards); if (ClientSeatIndex != 0) { CardFiveStarRoom.Ins.ReduceCardInNum(hands); //删除牌的剩余数量 } EventMsgMgr.SendEvent(CardFiveStarEventID.PlayerLiangDao); }