comparison orpg/mapper/fog.py @ 83:f38df4bf9715 alpha

Traipse Alpha 'OpenRPG' {090909-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: Fixes problems with Text nodes. Fixes log problem in Fog. Fixes Mini Lib loading problem. Fixes problem with whispers in Alias Lib. Creates new Alpha Branch.
author sirebral
date Wed, 09 Sep 2009 17:11:39 -0500
parents 449a8900f9ac
children 217fb049bd00
comparison
equal deleted inserted replaced
82:2fa8bd6785a5 83:f38df4bf9715
31 import traceback 31 import traceback
32 COURSE = 10 32 COURSE = 10
33 33
34 class FogArea: 34 class FogArea:
35 def __init__(self, outline, log): 35 def __init__(self, outline, log):
36 self.log = log
36 self.outline = outline 37 self.outline = outline
37 38
38 def set_fog_props(self, str): 39 def set_fog_props(self, str):
39 self.outline = str 40 self.outline = str
40 41
77 return xml_str 78 return xml_str
78 79
79 class fog_layer(layer_base): 80 class fog_layer(layer_base):
80 def __init__(self, canvas): 81 def __init__(self, canvas):
81 self.canvas = canvas 82 self.canvas = canvas
83 self.log = component.get('log')
82 layer_base.__init__(self) 84 layer_base.__init__(self)
83 self.color = wx.Color(128,128,128) 85 self.color = wx.Color(128,128,128)
84 if "__WXGTK__" not in wx.PlatformInfo: self.color = wx.Color(128,128,128, 128) 86 if "__WXGTK__" not in wx.PlatformInfo: self.color = wx.Color(128,128,128, 128)
85 self.fogregion = wx.Region() 87 self.fogregion = wx.Region()
86 self.fogregion.Clear() 88 self.fogregion.Clear()