/* PlayerAction handler */ // used to change state based on Player Action public void ReceivePlayerAction(object sender, ReceivedActionEventArgs e) { this.pot.handleAction(e.action); this.turnInProgress = false; var contribution = this.pot.getPlayerContributionByStreet(e.action.actor, e.action.street); OnCancelTurn(new CancelActionEventArgs(this.ActivePlayer, contribution)); }
private void OnPlayerAction(ReceivedActionEventArgs pe) { EventHandler <ReceivedActionEventArgs> handler = PlayerAction; if (handler != null) { handler(this, pe); } }