Changeset 484


Ignore:
Timestamp:
02/21/10 20:40:46 (10 years ago)
Author:
b0rland_parpg
Message:

Updated to accomodate for new FIFE release -- remove references to view.

Location:
trunk/game
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/local_loaders/xmlmap.py

    r474 r484  
    431431                else: 
    432432                    screen = self.engine.getRenderBackend() 
    433                     cam = self.engine.getView().addCamera(str(id), \ 
     433                    cam = map.addCamera(str(id), \ 
    434434                                    map.getLayer(str(ref_layer_id)), \ 
    435435                                    fife.Rect(0, 0, screen.getScreenWidth(), \ 
  • trunk/game/scripts/map.py

    r479 r484  
    3939        self.top_layer = None 
    4040        self.model = engine.getModel() 
    41         self.view = engine.getView() 
    4241        self.transitions = [] 
    4342        self.cur_cam2_x = 0 
     
    124123        the proper camera is set as the 'main' camera. 
    125124        At this point we also set the viewport to the current resolution.""" 
    126         for cam in self.view.getCameras(): 
     125        for cam in self.map.getCameras(): 
    127126            width = int(TDS.readSetting(name="ScreenWidth")) 
    128127            height = int(TDS.readSetting(name="ScreenHeight")) 
     
    131130            self.my_cam_id = cam.getId() 
    132131            self.cameras[self.my_cam_id] = cam 
    133         self.view.resetRenderers() 
     132            cam.resetRenderers() 
     133         
    134134        self.target_rotation = self.cameras[self.my_cam_id].getRotation() 
    135135 
  • trunk/game/scripts/world.py

    r476 r484  
    348348            local map cache 
    349349            @return: nothing""" 
    350         self.engine.getView().clearCameras() 
    351350        self.engine.getModel().deleteMaps() 
    352351        self.engine.getModel().deleteObjects() 
Note: See TracChangeset for help on using the changeset viewer.