Ejemplo n.º 1
0
        public void ResponseReceived(Game game, IEnumerable <Card> response)
        {
            var player = game.GetActivePlayer();

            var cardList = response.ToList();

            if (cardList.Count == 1)
            {
                var instance = CardFactory.Create(cardList[0]);

                if (Filter.Apply(instance))
                {
                    game.Supply.Take(instance.Name);
                    game.Supply.AddToTrash(instance.Name);
                    player.PlayStatus = PlayStatus.ActionPhase;
                    Resolved          = true;
                }
            }
        }
Ejemplo n.º 2
0
        //TODO: need to include reactions to trashing
        public void ResponseReceived(Game game, IEnumerable <Card> response)
        {
            var player = game.GetActivePlayer();

            var cardList = response.ToList();

            if ((cardList.Count == Amount && TrashingIsRequired) || (cardList.Count <= Amount && !TrashingIsRequired))
            {
                foreach (var card in cardList)
                {
                    var instance = CardFactory.Create(card);

                    if (Filter.Apply(instance))
                    {
                        SelectedCard = instance;
                        player.TrashFromHand(game.Supply, instance.Name);
                    }
                }

                player.PlayStatus = PlayStatus.ActionPhase;
                Resolved          = true;
            }
        }