Ejemplo n.º 1
0
 //    public CardsReader(string dir): base(dir){
 //        this.cards = new ArrayList();
 //    }
 public void readCards()
 {
     //Lee todas las cartas del archivo y las coloca en el ArrayList
     foreach (XmlNode node in this.config.GetElementsByTagName("card")){
         Card c = new Card();
         c.setID(node.Attributes.GetNamedItem("value").Value);
         c.setPath(node.Attributes.GetNamedItem("image").Value);
         this.cards.Add(c);
     }
 }