Пример #1
0
        public void Play(IActionCard card)
        {
            if (!CanPlay(card))
                throw new ArgumentException(string.Format("The card '{0}' cannot be played", card), "card");

            RemainingActions--;
            this.Game.Log.LogPlay(this.ActivePlayer, card);
            card.MoveTo(ActivePlayer.PlayArea);
            card.Play(this);
            ResolvePendingEffects();
        }
Пример #2
0
        public void Play(IActionCard card)
        {
            if (!CanPlay(card))
            {
                throw new ArgumentException(string.Format("The card '{0}' cannot be played", card), "card");
            }

            RemainingActions--;
            this.Game.Log.LogPlay(this.ActivePlayer, card);
            card.MoveTo(ActivePlayer.PlayArea);
            card.Play(this);
            ResolvePendingEffects();
        }
Пример #3
0
 public override void Resolve(TurnContext context, ICard source)
 {
     _card.Play(context);
     _card.MoveTo(context.ActivePlayer.PlayArea);
 }