/// <summary> /// Buys the in to game. /// </summary> /// <param name="game">The game.</param> /// <param name="seatNumber">The seat number.</param> /// <param name="amount">The amount.</param> public void BuyInToGame(Game game, int seatNumber, decimal amount) { if (game.AddPlayerToGame(this, seatNumber, amount)) { State = new WaitingState(); } }
/// <summary> /// Initializes a new instance of the <see cref="PlayerStateChangedEventArgs"/> class. /// </summary> /// <param name="playerState">State of the player.</param> public PlayerStateChangedEventArgs(PlayerState playerState) { PlayerState = playerState; }