Ignore:
Timestamp:
10/10/09 21:45:49 (10 years ago)
Author:
Kaydeth_parpg
Message:

Ticket #2: Patch by Kaydeth. Updated the rest of the classes in the scripts directory to correct some obvious discrepancies with our coding standard. Still need to go through the common and objects sub directories. comment[s:trac, t:2]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/map.py

    r264 r313  
    1616#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
    1717 
    18 import fife, time 
     18import fife 
     19import time 
    1920from local_loaders.loaders import loadMapFile 
    2021from scripts.common.eventlistenerbase import EventListenerBase 
     
    3940        self.transitions = [] 
    4041        self.obj_hash = {} 
    41         self.cur_cam2_x, self.initial_cam2_x, self.cam2_scrolling_right = 0,0,True 
     42        self.cur_cam2_x = 0 
     43        self.initial_cam2_x = 0 
     44        self.cam2_scrolling_right = True 
    4245        self.target_rotation = 0 
    4346        self.outline_renderer = None 
     
    5356        self.transitions = [] 
    5457        self.obj_hash = {} 
    55         self.map,self.agent_layer = None,None 
     58        self.map = None 
     59        self.agent_layer = None 
    5660        # We have to clear the cameras in the view as well, or we can't reuse 
    5761        # camera names like 'main' 
    5862        self.view.clearCameras() 
    5963        self.cameras = {} 
    60         self.cur_cam2_x,self.initial_cam2_x,self.cam2_scrolling_right = 0,0,True 
     64        self.cur_cam2_x = 0 
     65        self.initial_cam2_x = 0 
     66        self.cam2_scrolling_right = True 
    6167        self.target_rotation = 0 
    6268        self.outline_renderer = None 
     
    9197        self.target_rotation = self.cameras['main'].getRotation() 
    9298         
    93         self.outline_render = fife.InstanceRenderer.getInstance(self.cameras['main']) 
     99        self.outline_render = fife.InstanceRenderer.\ 
     100                                        getInstance(self.cameras['main']) 
    94101         
    95102        # set the render text 
    96103        rend = fife.FloatingTextRenderer.getInstance(self.cameras['main']) 
    97         text = self.engine.getGuiManager().createFont('fonts/rpgfont.png', 
    98                                                        0, str(TDS.readSetting("FontGlyphs", strip=False))) 
     104        text = self.engine.getGuiManager().\ 
     105                        createFont('fonts/rpgfont.png', 0, \ 
     106                                   str(TDS.readSetting("FontGlyphs", \ 
     107                                                       strip=False))) 
    99108        rend.changeDefaultFont(text) 
    100109                 
Note: See TracChangeset for help on using the changeset viewer.