Beispiel #1
0
 public CardSuit(ECardSuitTypes suitType)
 {
     _suitType = suitType;
     _cardDeckConfiguration = new CardDeckConfigurationProvider().GetRules();
     _cards = new List <Card>();
     CreateSuit();
 }
Beispiel #2
0
        private void DeserializeObject()
        {
            _configuration = new CardDeckConfiguration();
            XmlSerializer serializer = new XmlSerializer(typeof(CardDeckConfiguration));

            using (StringReader reader = new StringReader(Resources.CardDeckConfiguration))
            {
                _configuration = (CardDeckConfiguration)serializer.Deserialize(reader);
            }
        }
Beispiel #3
0
 public CardDeck()
 {
     _cardDeckConfiguration = new CardDeckConfigurationProvider().GetRules();
     AddCardSuits();
     AddCards();
 }