Beispiel #1
0
        private DealDto BiggestTimeOutDeal(int userId)
        {
            FightRoom fightRoom = fightCache.GetRoomByUId(userId);
            //检查一下剩余手牌数
            List <CardDto> selectCard = fightRoom.getUserFirstCard(userId);

            fightRoom.RemoveCards(userId, selectCard);
            //广播给所有客户端
            DealDto dealDto = new DealDto(selectCard, userId);

            dealDto.RemainCardList = fightRoom.getUserCards(userId);
            return(dealDto);
        }