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(); }
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(); }
public override void Resolve(TurnContext context, ICard source) { _card.Play(context); _card.MoveTo(context.ActivePlayer.PlayArea); }