Exemplo n.º 1
0
        public bool Play(Type cardType, out ICollection <IBotTask> tasks, Card.Rows row = Card.Rows.Melee, Point playPoint = default)
        {
            var card = GetCard(cardType);

            if (card == null)
            {
                tasks = new List <IBotTask>();
                return(false);
            }
            return(card.Play(out tasks, row, playPoint));
        }
Exemplo n.º 2
0
 public bool Play(IEnumerable <Type> cardsList, out ICollection <IBotTask> tasks, Card.Rows row = Card.Rows.Melee, Point playPoint = default)
 {
     tasks = new List <IBotTask>();
     foreach (var type in cardsList)
     {
         var card = GetCard(type);
         return(card != null && card.Play(out tasks, row, playPoint));
     }
     return(false);
 }