Changeset 667


Ignore:
Timestamp:
11/15/10 10:48:44 (9 years ago)
Author:
beliar
Message:

Patch by Beliar

  • Removed (now) unnecessary method arguments
File:
1 edited

Legend:

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

    r658 r667  
    545545            inst_dict["item_type"] = agent["ItemType"] 
    546546 
    547         self.createMapObject(self.active_map.agent_layer, inst_dict, inst) 
     547        self.createMapObject(self.active_map.agent_layer, inst_dict) 
    548548     
    549549    def placeAgents(self): 
     
    609609        self.game_state.current_map_name = map_name 
    610610 
    611     def createMapObject (self, layer, attributes, instance): 
     611    def createMapObject (self, layer, attributes): 
    612612        """Create an object and add it to the current map. 
    613613           @type layer: fife.Layer 
     
    627627         
    628628        if obj.trueAttr("PC"): 
    629             self.addPC(layer, obj, instance) 
     629            self.addPC(layer, obj) 
    630630        else: 
    631             self.addObject(layer, obj, instance)  
    632  
    633     def addPC(self, layer, player_char, instance): 
     631            self.addObject(layer, obj)  
     632 
     633    def addPC(self, layer, player_char): 
    634634        """Add the PlayerCharacter to the map 
    635635           @type layer: fife.Layer 
     
    646646        self.game_state.player_character.setup()         
    647647 
    648     def addObject(self, layer, obj, instance): 
     648    def addObject(self, layer, obj): 
    649649        """Adds an object to the map. 
    650650           @type layer: fife.Layer 
Note: See TracChangeset for help on using the changeset viewer.