public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (cardInPlay == null)
                throw new ArgumentNullException("cardInPlay");

            return (cardInPlay is IHeroCard);
        }
Esempio n. 2
0
        public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (cardInPlay == null)
            {
                throw new ArgumentNullException("cardInPlay");
            }

            return(cardInPlay is IHeroCard);
        }
        public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (!cardInPlay.IsValidAttachment(this))
                return false;

            var hero = cardInPlay as IHeroInPlay;
            if (hero == null)
                return false;

            if (!hero.HasTrait(Trait.Noble) && !hero.HasTrait(Trait.Silvan))
                return false;

            return true;
        }
        public virtual bool CanBeAttachedTo(IGame game, ICanHaveAttachments attachmentHost)
        {
            if (!attachmentHost.IsValidAttachment(this))
                return false;

            var cardInPlay = attachmentHost as ICardInPlay;
            if (cardInPlay == null)
                return false;

            if ((!(cardInPlay is IHeroInPlay)) && cardInPlay.Title != "Gandalf")
                return false;

            return true;
        }
Esempio n. 5
0
        public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (cardInPlay == null)
                throw new ArgumentNullException("cardInPlay");

            if (cardInPlay != null && cardInPlay is IEnemyCard)
            {
                //foreach (var player in step.Phase.Round.Game.Players)
                //{
                    //if (player.EngagedEnemies.Any(x => x.CardId == cardInPlay.CardId))
                    //{
                    //    return true;
                    //}
                //}
            }

            return false;
        }
Esempio n. 6
0
        public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (cardInPlay == null)
            {
                throw new ArgumentNullException("cardInPlay");
            }

            if (cardInPlay != null && cardInPlay is IEnemyCard)
            {
                //foreach (var player in step.Phase.Round.Game.Players)
                //{
                //if (player.EngagedEnemies.Any(x => x.CardId == cardInPlay.CardId))
                //{
                //    return true;
                //}
                //}
            }

            return(false);
        }
        public virtual bool CanBeAttachedTo(IGame game, ICanHaveAttachments attachmentHost)
        {
            if (!attachmentHost.IsValidAttachment(this))
            {
                return(false);
            }

            var cardInPlay = attachmentHost as ICardInPlay;

            if (cardInPlay == null)
            {
                return(false);
            }

            if ((!(cardInPlay is IHeroInPlay)) && cardInPlay.Title != "Gandalf")
            {
                return(false);
            }

            return(true);
        }
        public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
        {
            if (!cardInPlay.IsValidAttachment(this))
            {
                return(false);
            }

            var hero = cardInPlay as IHeroInPlay;

            if (hero == null)
            {
                return(false);
            }

            if (!hero.HasTrait(Trait.Noble) && !hero.HasTrait(Trait.Silvan))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 9
0
 public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
 {
     return (cardInPlay is IHeroInPlay);
 }
Esempio n. 10
0
 public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
 {
     return(cardInPlay is IHeroInPlay);
 }
 public virtual bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
 {
     return true;
 }
 public abstract bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay);
Esempio n. 13
0
 public virtual bool CanBeAttachedTo(IGame game, ICanHaveAttachments cardInPlay)
 {
     return(true);
 }
Esempio n. 14
0
 public override bool CanBeAttachedTo(IGame game, ICanHaveAttachments card)
 {
     return(card is IHeroCard);
 }