Example #1
0
        //放冲胡分数计算
        private static void FangChongHuCalculateScore(this FiveStarRoom fiveStarRoom, int huPaiIndex)
        {
            fiveStarRoom.SmallPlayerResults[huPaiIndex].PlayerResultType = FiveStarPlayerResultType.HuFangChong;//改变胡牌人的类型

            //计算玩家小结算得分
            fiveStarRoom.ResultCalculateScore(huPaiIndex, fiveStarRoom.CurrChuPaiIndex, fiveStarRoom.intData, fiveStarRoom.intData2); //计算分数

            fiveStarRoom.SmallPlayerResults[fiveStarRoom.CurrChuPaiIndex].PlayerResultType = FiveStarPlayerResultType.FangChong;      //记录放冲人的类型
            fiveStarRoom.FiveStarPlayerDic[fiveStarRoom.CurrChuPaiIndex].FangChongCount++;                                            //放冲次数加1
        }
Example #2
0
        //自摸分数计算
        private static void ZiMoCalculateScore(this FiveStarRoom fiveStarRoom, int huPaiIndex)
        {
            fiveStarRoom.SmallPlayerResults[huPaiIndex].PlayerResultType = FiveStarPlayerResultType.ZiMoHu; //改变胡牌人的类型

            fiveStarRoom.FiveStarPlayerDic[huPaiIndex].ZiMoCount++;                                         //自摸次数加1
            for (int j = 0; j < fiveStarRoom.RoomNumber; j++)
            {
                if (j == fiveStarRoom.CurrRestSeatIndex || huPaiIndex == j)
                {
                    continue;                                                                                  //休息玩家不参与分数计算 自己不参与分数计算
                }
                fiveStarRoom.ResultCalculateScore(huPaiIndex, j, fiveStarRoom.intData, fiveStarRoom.intData2); //计算分数
            }
        }