Exemplo n.º 1
0
 private Card CardFactory(Card card, XPathNavigator node)
 {
     switch (node.Name)
     {
         default:
     }
 }
Exemplo n.º 2
0
        public List<Card> Load(Card.Genre card_genre)
        {
            XPathDocument doc = new XPathDocument("Cards.xml");
            XPathNavigator navigator = doc.CreateNavigator();
            String xpath = String.Format("/cards/{0}", card_genre.ToString().ToLower());
            XPathNodeIterator nodes = navigator.Select(xpath);

            List<Card> cards = new List<Card>();
            foreach (XPathNodeIterator node in nodes)
            {
                string name = node.Current.GetAttribute("name", "");
                object card = Activator.CreateInstance(null, Classify(name));
                cards.Add(CardFactory(card as Card, node.Current));
            }

            return cards;
        }
Exemplo n.º 3
0
 private Card CreateSpecialtyCard(Card card, XPathNavigator node)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 private Card CreateMonsterCard(Card card, XPathNavigator node)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public void AddToHand(Card card)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public void Cursed(Card curse, Player player)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 7
0
 public bool Combat(Card monster, Player player)
 {
     return true;
 }