Exemplo n.º 1
0
        private List <string> FindCallCardUrlsFromHighestCard(Card card, CallType type)
        {
            List <string> urls = new List <string>();

            switch (type)
            {
            case CallType.FourJacks:
            case CallType.FourNines:
            case CallType.FourOfAKind:
                urls.AddRange(CardsManager.GetFourOfAKind(card.Value).Select(c => c.ImgPath).ToList());
                break;

            case CallType.EightInARow:
            case CallType.SevenInARow:
            case CallType.SixInARow:
            case CallType.FiveInARow:
            case CallType.FourInARow:
            case CallType.ThreeInARow:
                urls.AddRange(CardsManager.GetSequence(card.Suit, card.Value, type).Select(c => c.ImgPath).ToList());
                break;
            }

            return(urls);
        }