For() публичный статический Метод

public static For ( Dominion.Card card ) : CardAcceptanceDescription
card Dominion.Card
Результат CardAcceptanceDescription
Пример #1
0
        public static PickByPriorityDescription GetDefaultTrashDescription(GameConfig gameConfig)
        {
            var result = new List <CardAcceptanceDescription>();

            result.Add(CardAcceptanceDescription.For(Cards.Curse));
            if (gameConfig.NeedsRuins)
            {
                result.Add(CardAcceptanceDescription.For(Cards.RuinedVillage));
                result.Add(CardAcceptanceDescription.For(Cards.RuinedMarket));
                result.Add(CardAcceptanceDescription.For(Cards.Survivors));
                result.Add(CardAcceptanceDescription.For(Cards.RuinedVillage));
                result.Add(CardAcceptanceDescription.For(Cards.AbandonedMine));
            }

            result.Add(CardAcceptanceDescription.For(Cards.Estate, CountSource.CountOfPile, Cards.Province, Comparison.GreaterThan, 2));

            if (gameConfig.useShelters)
            {
                result.Add(CardAcceptanceDescription.For(Cards.Hovel));
                result.Add(CardAcceptanceDescription.For(Cards.OvergrownEstate));
            }

            result.Add(CardAcceptanceDescription.For(Cards.Copper));

            return(new PickByPriorityDescription(result.ToArray()));
        }
Пример #2
0
 public static PickByPriorityDescription GetDefaultPurchaseOrder(GameConfig gameConfig)
 {
     return(new PickByPriorityDescription(
                CardAcceptanceDescription.For(Cards.Province, CountSource.CountAllOwned, Cards.Gold, Comparison.GreaterThanEqual, 2),
                CardAcceptanceDescription.For(Cards.Duchy, CountSource.CountOfPile, Cards.Province, Comparison.LessThanEqual, 4),
                CardAcceptanceDescription.For(Cards.Estate, CountSource.CountOfPile, Cards.Province, Comparison.LessThanEqual, 2),
                CardAcceptanceDescription.For(Cards.Gold),
                CardAcceptanceDescription.For(Cards.Silver)));
 }
        public static StrategyDescription GetDefaultStrategyDescription()
        {
            var result = new StrategyDescription(
                CardAcceptanceDescription.For(Cards.Province),
                CardAcceptanceDescription.For(Cards.Duchy, CountSource.CountOfPile, Cards.Province, Comparison.LessThan, 4),
                CardAcceptanceDescription.For(Cards.Estate, CountSource.CountOfPile, Cards.Province, Comparison.LessThan, 2),
                CardAcceptanceDescription.For(Cards.Gold),
                CardAcceptanceDescription.For(Cards.Silver));

            return(result);
        }