diff orpg/mapper/fog_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
line wrap: on
line diff
--- a/orpg/mapper/fog_msg.py	Tue Aug 18 20:48:36 2009 -0500
+++ b/orpg/mapper/fog_msg.py	Thu Aug 20 03:00:39 2009 -0500
@@ -71,10 +71,6 @@
         return self.toxml(action,output_action)
 
     def toxml(self,action,output_action):
-        #print "fog_msg.toxml called"
-        #print "use_fog :",self.use_fog
-        #print "output_action :",output_action
-        #print "action :",action
         if not (self.use_fog): return ""
         fog_string = ""
         if self.fogregion.isEmpty(): fog_string=self.get_line("all","del",output_action)
@@ -116,11 +112,11 @@
                 list = l._get_childNodes()
                 for node in list:
                     polyline.append( IPoint().make( int(node.getAttribute("x")), int(node.getAttribute("y")) ) )
-                # pointarray = outline.split(";")
-                # for m in range(len(pointarray)):
-                #     pt=pointarray[m].split(",")
-                #     polyline.append(IPoint().make(int(pt[0]),int(pt[1])))
-            #print "length of polyline", len(polyline)
+                    # pointarray = outline.split(";")
+                    # for m in range(len(pointarray)):
+                    #     pt=pointarray[m].split(",")
+                    #     polyline.append(IPoint().make(int(pt[0]),int(pt[1])))
+                    #print "length of polyline", len(polyline)
             if (len(polyline)>2):
                 if action=="del": self.fogregion.FromPolygon(polyline,0)
                 else: self.fogregion.FromPolygon(polyline,1)