Beispiel #1
0
        /* 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));
        }
Beispiel #2
0
        private void OnPlayerAction(ReceivedActionEventArgs pe)
        {
            EventHandler <ReceivedActionEventArgs> handler = PlayerAction;

            if (handler != null)
            {
                handler(this, pe);
            }
        }