Beispiel #1
0
 //通知玩家摸牌
 public static void PlayerMoPai(this FiveStarRoom fiveStarRoom, int seatIndex = -1)
 {
     if (seatIndex >= 0)
     {
         fiveStarRoom.LastMoPaiSeatIndex = seatIndex;
     }
     else
     {
         fiveStarRoom.LastMoPaiSeatIndex = fiveStarRoom.GetNextSeatIndexExcludeRest(fiveStarRoom.CurrChuPaiIndex, fiveStarRoom.RoomNumber - 1);
     }
     if (fiveStarRoom.ResidueCards.Count <= 0)
     {
         fiveStarRoom.LiuJu();//流局
         return;
     }
     fiveStarRoom.FiveStarPlayerDic[fiveStarRoom.LastMoPaiSeatIndex].MoPai(fiveStarRoom.ResidueCards[0]);
     fiveStarRoom.ResidueCards.RemoveAt(0);//牌数组减掉 摸的哪张牌
 }