Dominion.ListOfCards.AddAllCardsFromInSomeOrder C# (CSharp) Method

AddAllCardsFromInSomeOrder() public method

public AddAllCardsFromInSomeOrder ( CollectionCards other ) : void
other CollectionCards
return void
        public void AddAllCardsFromInSomeOrder(CollectionCards other)
        {
            base.AddAllCardsFrom(other);
            foreach (Card card in other.AllTypes)
            {
                int count = other.CountOf(card);
                for (int i = 0; i < count; ++i)
                    this.cards.Add(card);
            }
        }