Ignore:
Timestamp:
10/13/09 18:42:00 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #73: Patch by eliedebrauwer, removed obj_hashes from world, and from the maps, added logic to restore PC and NPC behaviour based on the layer ID, added logic to trigger the map load using within the pump(). Load still not functional. comment[s:trac, t:73]

File:
1 edited

Legend:

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

    r314 r323  
    3939        self.view = engine.getView() 
    4040        self.transitions = [] 
    41         self.obj_hash = {} 
    4241        self.cur_cam2_x = 0 
    4342        self.initial_cam2_x = 0 
     
    5554            self.model.deleteMap(self.map) 
    5655        self.transitions = [] 
    57         self.obj_hash = {} 
    5856        self.map = None 
    5957        self.agent_layer = None 
     
    118116            self.cameras['main'].attach(agent) 
    119117 
    120     def addObject(self, name, obj): 
    121         """Add an object to this map0 
    122             Inputs: 
    123                 name - ID of object 
    124                 obj - FIFE instance of object 
    125             Return: 
    126                 Nothing 
    127         """ 
    128         # save it for later use 
    129         self.obj_hash[name]=obj 
    130118         
    131119    def toggle_renderer(self, r_name): 
Note: See TracChangeset for help on using the changeset viewer.