Ejemplo n.º 1
0
            private void AddSpiderToTheStagingArea(IGame game, IEffectHandle handle, IEnemyCard spider)
            {
                if (game.StagingArea.EncounterDeck.Cards.Any(x => x.Id == spider.Id))
                {
                    game.StagingArea.EncounterDeck.RemoveFromDeck(spider);
                    game.StagingArea.AddToStagingArea(spider);
                    handle.Resolve(string.Format("'{0}' added to the staging area from the encounter deck", spider.Title));
                    return;
                }
                else if (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id))
                {
                    game.StagingArea.EncounterDeck.RemoveFromDiscardPile(new List<IEncounterCard> { spider });
                    game.StagingArea.AddToStagingArea(spider);
                    handle.Resolve(string.Format("'{0}' added to the staging area from the encounter discard pile", spider.Title));
                }

                handle.Cancel(string.Format("'{0}' was not added to the staging area because it could not be located", spider.Title));
            }
Ejemplo n.º 2
0
            private void AddSpiderToTheStagingArea(IGame game, IEffectHandle handle, IEnemyCard spider)
            {
                if (game.StagingArea.EncounterDeck.Cards.Any(x => x.Id == spider.Id))
                {
                    game.StagingArea.EncounterDeck.RemoveFromDeck(spider);
                    game.StagingArea.AddToStagingArea(spider);
                    handle.Resolve(string.Format("'{0}' added to the staging area from the encounter deck", spider.Title));
                    return;
                }
                else if (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id))
                {
                    game.StagingArea.EncounterDeck.RemoveFromDiscardPile(new List <IEncounterCard> {
                        spider
                    });
                    game.StagingArea.AddToStagingArea(spider);
                    handle.Resolve(string.Format("'{0}' added to the staging area from the encounter discard pile", spider.Title));
                }

                handle.Cancel(string.Format("'{0}' was not added to the staging area because it could not be located", spider.Title));
            }
Ejemplo n.º 3
0
 public EnemyInPlay(IGame game, IEnemyCard card)
     : base(game, card)
 {
 }
Ejemplo n.º 4
0
 private string GetSpiderDescription(IGame game, IEnemyCard spider)
 {
     return((game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) ?
            string.Format("{0} (Discard Pile", spider.Title)
         : string.Format("{0} (Encounter Deck", spider.Title));
 }
Ejemplo n.º 5
0
 private string GetSpiderDescription(IGame game, IEnemyCard spider)
 {
     return (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) ?
         string.Format("{0} (Discard Pile", spider.Title)
         : string.Format("{0} (Encounter Deck", spider.Title);
 }