Changeset 211


Ignore:
Timestamp:
07/14/09 03:55:18 (10 years ago)
Author:
bretzel_parpg
Message:

I think I forgot to commit these

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/objects/actors.py

    r199 r211  
    6565        self.speed = float(TDS.readSetting("PCSpeed")) # TODO: rework/improve 
    6666        self.nextAction = None 
     67        self.boxTitle = None 
    6768        self.examineName = None 
    6869        self.examineDesc = None 
     
    8182            pass 
    8283        if self.nextAction == "open_box": 
    83             self.engine.view.createBoxGUI() 
     84            self.engine.view.createBoxGUI(self.boxTitle) 
    8485            self.nextAction = None 
    8586        elif self.nextAction == "examine_obj": 
     
    165166        self.behaviour.agent.move('approachDoor', l, self.behaviour.speed) 
    166167         
    167     def approachBox(self, location): 
     168    def approachBox(self, location, title): 
    168169        """ 
    169170        Approach a box and then open it 
    170171        @type location: list 
    171172        @param locatation: list that is converted to a fife.Location 
     173        @type title: string 
     174        @param title: The title for the window 
    172175        @return: None 
    173176        """ 
     
    178181        self.behaviour.agent.move('run', l, self.behaviour.speed) 
    179182        self.behaviour.nextAction = "open_box" 
     183        self.behaviour.boxTitle = title 
    180184 
    181185    def approachAndExamine(self, location, name, description): 
Note: See TracChangeset for help on using the changeset viewer.