//補牌表演 void CardShow() { if (AddCardShow) { if (ScoreBoardStart[(byte)CardTeamList.Card1Team1] == 0 && ScoreBoardStart[(byte)CardTeamList.Card1Team2] == 0 && ScoreBoardStart[(byte)CardTeamList.Card2Team1] == 0 && ScoreBoardStart[(byte)CardTeamList.Card2Team2] == 0 && ScoreBoardStart[(byte)CardTeamList.Card3Team1] == 0 && ScoreBoardStart[(byte)CardTeamList.Card3Team2] == 0 && ScoreBoardStart[(byte)CardTeamList.Card4Team1] == 0 && ScoreBoardStart[(byte)CardTeamList.Card4Team2] == 0 && ScoreBoardStart[(byte)CardTeamList.Card5Team1] == 0 && ScoreBoardStart[(byte)CardTeamList.Card5Team2] == 0 && (AddCard1Show || AddCard2Show)) { CardTeamList SaveList = CardTeamList.Card1Team1; byte SaveCardNumber = 0; foreach (var item in AddCard) { if (AddCard1Show && AddCard2Show) { if (item.Key == CardTeamList.Card1Team1 || item.Key == CardTeamList.Card2Team1 || item.Key == CardTeamList.Card3Team1 || item.Key == CardTeamList.Card4Team1 || item.Key == CardTeamList.Card5Team1) { SaveList = item.Key; SaveCardNumber = (byte)item.Value; } } else if (!AddCard1Show && AddCard2Show) { if (item.Key == CardTeamList.Card1Team2 || item.Key == CardTeamList.Card2Team2 || item.Key == CardTeamList.Card3Team2 || item.Key == CardTeamList.Card4Team2 || item.Key == CardTeamList.Card5Team2) { SaveList = item.Key; SaveCardNumber = (byte)item.Value; } } } DealerCard_Move.CardNumber = SaveCardNumber; if (SaveList == CardTeamList.Card1Team1) { Seat1Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card1Team2) { Seat1Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card2Team1) { Seat2Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card2Team2) { Seat2Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card3Team1) { Seat3Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card3Team2) { Seat3Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card4Team1) { Seat4Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card4Team2) { Seat4Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card5Team1) { Seat5Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card5Team2) { Seat5Team2.Add(SaveCardNumber); } SeatTeamPoint[(byte)SaveList]++; SeatTeamAddCheck[(byte)SaveList] = 1; NowFinallCardSeat[(byte)SaveList] = 1; AddCardShow = false; } if (!AddCard1Show && !AddCard2Show) { AddCard.Clear(); AddCardShow = false; } } }
//強制結束處理 void CancelShow() { FirstMoveEnd = false; BJCard_Control.AddCard1Show = false; BJCard_Control.AddCard2Show = false; BJCard_Control.AddCardShow = false; Card_Move_Control.ShowOK = false; FinallEnd = false; DataInit(); //分牌動畫還沒有表演完 if (BJCard_Control.AddCard.Count != 0) { CardTeamList SaveList = CardTeamList.Card1Team1; byte SaveCardNumber = 0; foreach (var item in BJCard_Control.AddCard) { SaveList = item.Key; SaveCardNumber = (byte)item.Value; if (SaveList == CardTeamList.Card1Team1) { BJCard_Control.Seat1Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card1Team2) { BJCard_Control.Seat1Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card2Team1) { BJCard_Control.Seat2Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card2Team2) { BJCard_Control.Seat2Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card3Team1) { BJCard_Control.Seat3Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card3Team2) { BJCard_Control.Seat3Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card4Team1) { BJCard_Control.Seat4Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card4Team2) { BJCard_Control.Seat4Team2.Add(SaveCardNumber); } if (SaveList == CardTeamList.Card5Team1) { BJCard_Control.Seat5Team1.Add(SaveCardNumber); } else if (SaveList == CardTeamList.Card5Team2) { BJCard_Control.Seat5Team2.Add(SaveCardNumber); } } BJCard_Control.CheckPoint[(byte)CardTeamList.Card1Team1] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card1Team2] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card2Team1] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card2Team2] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card3Team1] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card3Team2] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card4Team1] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card4Team2] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card5Team1] = 1; BJCard_Control.CheckPoint[(byte)CardTeamList.Card5Team2] = 1; } }