コード例 #1
0
        public static void IncreasePot(int amount, int playerNr)
        {
            Pot += amount;
            Players[playerNr].Chips -= amount;

            BetEventArgs args = new BetEventArgs {
                BetAmount = amount, PlaceAtTable = playerNr
            };

            PokerEventsMediator.OnBet(null, args);
        }
コード例 #2
0
 public static void OnBet(object sender, BetEventArgs e)
 {
     Bet?.Invoke(null, e);
 }