예제 #1
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();//发牌
            }
        }