private Card CardFactory(Card card, XPathNavigator node) { switch (node.Name) { default: } }
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; }
private Card CreateSpecialtyCard(Card card, XPathNavigator node) { throw new NotImplementedException(); }
private Card CreateMonsterCard(Card card, XPathNavigator node) { throw new NotImplementedException(); }
public void AddToHand(Card card) { throw new NotImplementedException(); }
public void Cursed(Card curse, Player player) { throw new NotImplementedException(); }
public bool Combat(Card monster, Player player) { return true; }