Ejemplo n.º 1
0
        /// <summary>
        /// The player is discarding cards
        /// </summary>
        public void Discard(PlayerInfo p, string[] cards)
        {
            lock (Table)
            {
                Logger.LogDebugInformation("{0} is discarding [{1}] on state: {2}", p.Name, string.Join(", ", cards), State);

                if (m_CurrentModule == null)
                {
                    Logger.LogWarning("{0} tried discarding but the game is not in the right state", p.Name);
                    return;
                }

                m_CurrentModule.OnCardDiscarded(p, cards);
            }
        }