Example #1
0
        /// <summary>
        /// 发牌
        /// </summary>
        public void Deal()
        {
            var seats = SeatsManager.GetSeats();

            for (int i = 0; i < seats.Count; i++)
            {
                var cards = MaJiangManager.TackOut(13);
                seats[i].InitialHandCars((StandCardsCollection)cards);
            }
        }
Example #2
0
        /// <summary>
        /// 玩家准备
        /// </summary>
        /// <param name="playerId"></param>
        public void Ready(int playerId)
        {
            Seat seat = GetSeatByPlayerId(playerId);

            SeatsManager.Add(seat);
        }