comparison orpg/mapper/map_msg.py @ 71:449a8900f9ac ornery-dev

Code refining almost completed, for this round. Some included files are still in need of some clean up, but this is test worthy.
author sirebral
date Thu, 20 Aug 2009 03:00:39 -0500
parents 072ffc1d466f
children 36919b8a3ef9 dcf4fbe09b70
comparison
equal deleted inserted replaced
70:52a5fa913008 71:449a8900f9ac
64 for k in xml_dom.getAttributeKeys(): 64 for k in xml_dom.getAttributeKeys():
65 self.init_prop(k,xml_dom.getAttribute(k)) 65 self.init_prop(k,xml_dom.getAttribute(k))
66 for c in xml_dom._get_childNodes(): 66 for c in xml_dom._get_childNodes():
67 name = c._get_nodeName() 67 name = c._get_nodeName()
68 if not self.children.has_key(name): 68 if not self.children.has_key(name):
69 if name == "miniatures": 69 if name == "miniatures": self.children[name] = minis_msg(self.p_lock)
70 self.children[name] = minis_msg(self.p_lock) 70 elif name == "grid": self.children[name] = grid_msg(self.p_lock)
71 elif name == "grid": 71 elif name == "bg": self.children[name] = bg_msg(self.p_lock)
72 self.children[name] = grid_msg(self.p_lock) 72 elif name == "whiteboard": self.children[name] = whiteboard_msg(self.p_lock)
73 elif name == "bg": 73 elif name == "fog": self.children[name] = fog_msg(self.p_lock)
74 self.children[name] = bg_msg(self.p_lock)
75 elif name == "whiteboard":
76 self.children[name] = whiteboard_msg(self.p_lock)
77 elif name == "fog":
78 self.children[name] = fog_msg(self.p_lock)
79 else: 74 else:
80 print "Unrecognized tag " + name + " found in map_msg.init_from_dom - skipping" 75 print "Unrecognized tag " + name + " found in map_msg.init_from_dom - skipping"
81 continue 76 continue
82 try: self.children[name].init_from_dom(c) 77 try: self.children[name].init_from_dom(c)
83 except Exception, e: 78 except Exception, e: