Ejemplo n.º 1
0
    public PokerDeck()
    {
        var materials = PokerCardFactory.GetInstance().Materials;

        foreach (var material in materials)
        {
            PokerCard new_card = new PokerCard();
            new_card.Name = material.Key;
            new_card.SetCardSuit();
            new_card.SetCardValue();
            AddToTop(
                new_card
                );
        }
    }