Esempio n. 1
0
 //玩家选择打漂
 public static void PlayerDaPiao(this FiveStarRoom fiveStarRoom)
 {
     fiveStarRoom.EntiretyOprationAleadyNum++;
     if (fiveStarRoom.EntiretyOprationAleadyNum >= fiveStarRoom.RoomNumber)
     {
         fiveStarRoom.IsDaPiaoBeing = false; //不在打漂中了
         fiveStarRoom.Deal();                //发牌
     }
 }
Esempio n. 2
0
        //小局开始游戏
        public static void SmallStartGame(this FiveStarRoom fiveStarRoom)
        {
            fiveStarRoom.CurrRoomStateType = RoomStateType.GameIn;//更改房间游戏状态
            Actor_FiveStar_SmallStartGame actorFiveStarStart = new Actor_FiveStar_SmallStartGame();

            actorFiveStarStart.CurrOfficNum = ++fiveStarRoom.CurrOfficNum; //当前局数
            fiveStarRoom.BroadcastMssagePlayers(actorFiveStarStart);       //广播小局游戏开始
            fiveStarRoom.PlayerRest();                                     //玩家轮休
            if (fiveStarRoom.RoomConfig.MaxPiaoNum > 0)
            {
                fiveStarRoom.BroadcastCanDaPiao();//广播可以打漂
            }
            else
            {
                fiveStarRoom.Deal();//发牌
            }
        }