예제 #1
0
		public void PlayCard(Card card, PlayerMode previousPlayerModeToRestore)
		{
			this.CurrentTurn.Played(card);
			card.Play(this);
			card.PlayFinished(this);

			this.InPlay.Refresh(this);

			if (CardPlayed != null)
			{
				CardPlayedEventArgs cpdea = new CardPlayedEventArgs(this, card);
				CardPlayed(this, cpdea);
			}
			this.PlayerMode = previousPlayerModeToRestore;
		}