コード例 #1
0
ファイル: PokerGame.cs プロジェクト: VirtualTaluva/Server
        /// <summary>
        /// The player is putting money in the game
        /// </summary>
        public bool PlayMoney(PlayerInfo p, int amount)
        {
            lock (Table)
            {
                var amnt = Math.Min(amount, p.MoneySafeAmnt);
                Logger.LogDebugInformation("{0} is playing {1} money on state: {2}", p.Name, amnt, State);

                if (m_CurrentModule != null)
                {
                    return(m_CurrentModule.OnMoneyPlayed(p, amount));
                }

                Logger.LogDebugInformation("{0} played money but the game is not in the right state", p.Name);

                return(false);
            }
        }