Changeset 583


Ignore:
Timestamp:
07/11/10 16:00:37 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Made the shebang the same in all files
  • Added ContainerGuiBase?, a base class for guis that show container contents
  • Moved ContainerGui? from scripts.gui.popups to a new file
  • ContainerGui? and InventoryGui? now have ContainerGuiBase? as base class
  • If an item is taken out of an inventory the item will now be deleted from item_lookup instead of being set to None. That fixes an bug where items taken out of the inventory could not be moved back in.
Location:
trunk
Files:
2 added
59 edited

Legend:

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

    r553 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/local_loaders/xmlmap.py

    r563 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/parpg_editor.py

    r482 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/common/eventlistenerbase.py

    r473 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/console.py

    r553 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/scripts/controllerbase.py

    r563 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/dialogue.py

    r571 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/dialoguevalidator.py

    r570 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gamemap.py

    r579 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gamemodel.py

    r581 r583  
    1 #!/usr/bin/python # pylint: disable-msg=C0111 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gamescenecontroller.py

    r579 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gamesceneview.py

    r579 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gamestate.py

    r579 r583  
    1 #!/usr/bin/python # pylint: disable-msg=C0111 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gui/context_menu.py

    r568 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gui/dialoguegui.py

    r579 r583  
    1 #!/usr/bin/python # pylint: disable-msg=C0111 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/gui/filebrowser.py

    r479 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/scripts/gui/hud.py

    r579 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
     
    2222from scripts.gui.context_menu import ContextMenu 
    2323from scripts.gui import inventorygui 
    24 from scripts.gui.popups import ExaminePopup, ContainerGUI 
     24from scripts.gui.popups import ExaminePopup 
     25from scripts.gui.containergui import ContainerGUI 
    2526from scripts.gui.dialoguegui import DialogueGUI 
    2627 
     
    393394        self.box_container = ContainerGUI(self.controller, 
    394395                                              unicode(title), container) 
    395         self.box_container.container_gui.mapEvents(events) 
     396        self.box_container.gui.mapEvents(events) 
    396397        self.box_container.showContainer() 
    397398        return self.box_container 
  • trunk/game/scripts/gui/inventorygui.py

    r573 r583  
    1 #/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
     
    1616#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
    1717 
    18 from fife import fife 
    19 from fife.extensions import pychan 
    2018from fife.extensions.pychan.tools import callbackWithArguments as cbwa 
    2119 
    2220from scripts.gui import drag_drop_data as data_drag 
    2321from scripts.objects.base import Container 
    24 from scripts.objects.action import ACTIONS 
    25 from context_menu import ContextMenu 
    26  
    27 class InventoryGUI(object): 
     22from scripts.gui.containergui_base import ContainerGUIBase 
     23 
     24class InventoryGUI(ContainerGUIBase): 
    2825    """Inventory GUI class""" 
    2926    def __init__(self, controller, inventory, callbacks): 
     
    4138                   Function that will toggle the state of the inventory button 
    4239           @return: None""" 
    43         self.controller = controller 
     40        super(InventoryGUI, self).__init__(controller, "gui/inventory.xml") 
    4441        self.engine = controller.engine 
    4542        self.readyCallback = callbacks['refreshReadyImages'] 
     
    4744        self.original_cursor_id = self.engine.getCursor().getId() 
    4845 
    49         self.inventory = pychan.loadXML("gui/inventory.xml") 
    5046        self.inventory_shown = False 
    5147        events_to_map = {} 
     
    8884                                                self.showContextMenu 
    8985        events_to_map['close_button'] = self.closeInventoryAndToggle 
    90         self.inventory.mapEvents(events_to_map) 
     86        self.gui.mapEvents(events_to_map) 
    9187        # TODO: Why the commented out code? 
    9288        # self.resetMouseCursor() 
     
    9591        for slot in self.slot_buttons: 
    9692            for index, button in enumerate(self.slot_buttons[slot]): 
    97                 widget = self.inventory.findChild(name=button) 
     93                widget = self.gui.findChild(name=button) 
    9894                widget.slot = slot 
    9995                widget.index = index 
     
    10197                                                                   widget.index) 
    10298                self.updateImage(widget) 
    103  
     99                 
    104100    def updateImage(self, button): 
    105101        if (button.item == None): 
     
    111107        button.hover_image = image 
    112108 
    113     def showContextMenu(self, event, widget): 
    114         """Decide whether to drag or drop the image. 
    115            @type obj: string 
    116            @param obj: The name of the object within  
    117                        the dictionary 'self.buttons' 
    118            @return: None""" 
    119         #TODO: Create a class as base for this and ContainerGUI so both use the same function 
    120         if event.getButton() == event.RIGHT: 
    121             item = widget.item 
    122             if item and item.trueAttr("usable"): 
    123                 actions = item.actions 
    124                 if not actions: 
    125                     return 
    126                 menu_actions = [] 
    127                 x_pos, y_pos = widget.getAbsolutePos() 
    128                 x_pos += event.getX() 
    129                 y_pos += event.getY() 
    130                 for action_name in actions: 
    131                     display_name = action_name 
    132                     if action_name in ACTIONS: 
    133                         param_dict = {}  
    134                         param_dict["controller"] = self.controller 
    135                         param_dict["commands"] = {} 
    136                         if action_name == "Read": 
    137                             param_dict["text_name"] = item.name 
    138                             param_dict["text"] = "" 
    139                         if action_name == "Use": 
    140                             param_dict["item"] = item 
    141                             display_name = actions[action_name].pop("text") 
    142                         param_dict.update(actions[action_name]) 
    143                         menu_actions.append([action_name, display_name,  
    144                                             self.executeMenuItem, 
    145                                             ACTIONS[action_name](**param_dict)]) 
    146                 self.controller.view.hud.showContextMenu(menu_actions, 
    147                                                  (x_pos,  
    148                                                   y_pos) 
    149                                                   ) 
    150      
    151     def executeMenuItem(self, action): 
    152         #self.hideContainer() 
    153         action.execute() 
    154  
    155109    def closeInventory(self): 
    156110        """Close the inventory. 
    157111           @return: None""" 
    158         self.inventory.hide() 
     112        self.gui.hide() 
    159113 
    160114    def closeInventoryAndToggle(self): 
     
    189143           @return: None""" 
    190144        self.updateInventoryButtons() 
    191         self.inventory.show() 
    192  
    193     def setMouseCursor(self, image, dummy_image, cur_type="native"):  
    194         """Set the mouse cursor to an image. 
    195            @type image: string 
    196            @param image: The image you want to set the cursor to 
    197            @type dummy_image: string 
    198            @param dummy_image: ??? 
    199            @type cur_type: string 
    200            @param cur_type: ??? 
    201            @return: None""" 
    202         cursor = self.engine.getCursor() 
    203         fife_cur_type = fife.CURSOR_IMAGE 
    204         img_pool = self.engine.getImagePool() 
    205         if(cur_type == "target"): 
    206             target_cursor_id = img_pool.addResourceFromFile(image)   
    207             dummy_cursor_id = img_pool.addResourceFromFile(dummy_image) 
    208             cursor.set(fife_cur_type,dummy_cursor_id) 
    209             cursor.setDrag(fife_cur_type,target_cursor_id,-16,-16) 
    210         else: 
    211             fife_cur_type = fife.CURSOR_IMAGE 
    212             zero_cursor_id = img_pool.addResourceFromFile(image) 
    213             cursor.set(fife_cur_type,zero_cursor_id) 
    214             cursor.setDrag(fife_cur_type,zero_cursor_id) 
    215              
    216     def resetMouseCursor(self): 
    217         """Reset cursor to default image. 
    218            @return: None""" 
    219         c = self.engine.getCursor() 
    220         cursor_type = fife.CURSOR_NATIVE 
    221         # this is the path to the default image 
    222         cursor_id = self.original_cursor_id 
    223         c.setDrag(cursor_type, cursor_id) 
    224         c.set(cursor_type, cursor_id) 
    225          
    226     def dragDrop(self, obj): 
    227         """Decide whether to drag or drop the image. 
    228            @type obj: string 
    229            @param obj: The name of the object within  
    230                        the dictionary 'self.buttons' 
    231            @return: None""" 
    232         if(data_drag.dragging == True): 
    233             self.dropObject(obj) 
    234         elif(data_drag.dragging == False): 
    235             self.dragObject(obj) 
     145        self.gui.show()                 
    236146                 
    237147    def dragObject(self, obj): 
     
    242152           @return: None""" 
    243153        # get the widget from the inventory with the name obj 
    244         drag_widget = self.inventory.findChild(name = obj) 
     154        drag_widget = self.gui.findChild(name = obj) 
    245155        drag_item = drag_widget.item 
    246156        # only drag if the widget is not empty 
     
    269179                       the dictionary 'self.buttons'  
    270180           @return: None""" 
    271         drop_widget = self.inventory.findChild(name = obj) 
     181        drop_widget = self.gui.findChild(name = obj) 
    272182        try : 
    273183            if drop_widget != data_drag.dragged_widget: 
     
    292202           @param name: name of image to get 
    293203           @return: None""" 
    294         return self.inventory.findChild(name = name) 
     204        return self.gui.findChild(name = name) 
  • trunk/game/scripts/gui/popups.py

    r573 r583  
    1616#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
    1717 
    18 from fife import fife 
    1918from fife.extensions import pychan 
    20 from fife.extensions.pychan.tools import callbackWithArguments as cbwa 
    21  
    22 from scripts.gui import drag_drop_data as data_drag 
    23 from scripts.objects.action import ACTIONS 
    24 from context_menu import ContextMenu 
    25  
    26 class ContainerGUI(): 
    27     def __init__(self, controller, title, container): 
    28         """A class to create a window showing the contents of a container. 
    29            @param controller: The current Controller 
    30            @type controller: Class derived from ControllerBase 
    31            @param title: The title of the window 
    32            @type title: string 
    33            @param container: A container to represent 
    34            @type container: Container 
    35            @return: None""" 
    36         self.controller = controller 
    37         self.container_gui = pychan.loadXML("gui/container_base.xml") 
    38         self.container_gui.findChild(name="topWindow").title = title 
    39      
    40         data_drag.dragging = False 
    41         self.original_cursor_id = self.controller.engine.getCursor().getId() 
    42         self.container = container 
    43         self.empty_images = dict() 
    44         self.events_to_map = {}         
    45         self.resetMouseCursor() 
    46              
    47     def updateImage(self, button): 
    48         # TODO: missing function information 
    49         if (button.item == None): 
    50             image = self.empty_images[button.name] 
    51         else: 
    52             image = button.item.getInventoryThumbnail() 
    53         button.up_image = image 
    54         button.down_image = image 
    55         button.hover_image = image 
    56        
    57     def showContainer(self): 
    58         """Show the container 
    59            @return: None""" 
    60         # Prepare slots 1 through 9 
    61         empty_image = "gui/inv_images/inv_backpack.png" 
    62         slot_count = 9 
    63         for counter in range(1, slot_count+1): 
    64             slot_name = "Slot%i" % counter 
    65             self.empty_images[slot_name] = empty_image 
    66             widget = self.container_gui.findChild(name=slot_name) 
    67             widget.item = self.container.items.get(counter-1) 
    68             widget.index = counter-1 
    69             self.updateImage(widget) 
    70             self.events_to_map[slot_name] = cbwa(self.dragDrop, slot_name) 
    71             self.events_to_map[slot_name + "/mouseReleased"] = \ 
    72                                             self.showContextMenu 
    73  
    74         self.container_gui.mapEvents(self.events_to_map) 
    75         self.container_gui.show() 
    76  
    77     def hideContainer(self): 
    78         """Hide the container 
    79            @return: None""" 
    80         if self.container_gui.isVisible(): 
    81             self.container_gui.hide() 
    82          
    83     def setMouseCursor(self, image, dummy_image, mc_type="native"):  
    84         """Set the mouse cursor to an image. 
    85            @type image: string 
    86            @param image: The image you want to set the cursor to 
    87            @type dummy_image: string 
    88            @param dummy_image: ??? 
    89            @type type: string 
    90            @param type: ??? 
    91            @return: None""" 
    92         cursor = self.controller.engine.getCursor() 
    93         cursor_type = fife.CURSOR_IMAGE 
    94         img_pool = self.controller.engine.getImagePool() 
    95         if(mc_type == "target"): 
    96             target_cursor_id = img_pool.addResourceFromFile(image)   
    97             dummy_cursor_id = img_pool.addResourceFromFile(dummy_image) 
    98             cursor.set(cursor_type, dummy_cursor_id) 
    99             cursor.setDrag(cursor_type, target_cursor_id, -16, -16) 
    100         else: 
    101             cursor_type = fife.CURSOR_IMAGE 
    102             zero_cursor_id = img_pool.addResourceFromFile(image) 
    103             cursor.set(cursor_type, zero_cursor_id) 
    104             cursor.setDrag(cursor_type, zero_cursor_id) 
    105              
    106     def resetMouseCursor(self): 
    107         """Reset cursor to default image. 
    108            @return: None""" 
    109         c = self.controller.engine.getCursor() 
    110         img_pool = self.controller.engine.getImagePool() 
    111         cursor_type = fife.CURSOR_NATIVE 
    112         # this is the path to the default image 
    113         cursor_id = self.original_cursor_id 
    114         c.setDrag(cursor_type, cursor_id) 
    115         c.set(cursor_type, cursor_id) 
    116          
    117     def showContextMenu(self, event, widget): 
    118         """Decide whether to drag or drop the image. 
    119            @type obj: string 
    120            @param obj: The name of the object within  
    121                        the dictionary 'self.buttons' 
    122            @return: None""" 
    123         #TODO: Create a class as base for this and InventoryGui so both use the same function 
    124         if event.getButton() == event.RIGHT: 
    125             item = widget.item 
    126             if item and item.trueAttr("usable"): 
    127                 actions = item.actions 
    128                 if not actions: 
    129                     return 
    130                 menu_actions = [] 
    131                 x_pos, y_pos = widget.getAbsolutePos() 
    132                 x_pos += event.getX() 
    133                 y_pos += event.getY() 
    134                 for action_name in actions: 
    135                     display_name = action_name 
    136                     if action_name in ACTIONS: 
    137                         param_dict = {}  
    138                         param_dict["controller"] = self.controller 
    139                         param_dict["commands"] = {} 
    140                         if action_name == "Read": 
    141                             param_dict["text_name"] = item.name 
    142                             param_dict["text"] = "" 
    143                         if action_name == "Use": 
    144                             param_dict["item"] = item 
    145                             display_name = actions[action_name].pop("text") 
    146                         param_dict.update(actions[action_name]) 
    147                         menu_actions.append([action_name, display_name,  
    148                                             self.executeMenuItem, 
    149                                             ACTIONS[action_name](**param_dict)]) 
    150                 self.controller.view.hud.showContextMenu(menu_actions, 
    151                                                  (x_pos,  
    152                                                   y_pos) 
    153                                                   ) 
    154  
    155      
    156     def executeMenuItem(self, action): 
    157         #self.hideContainer() 
    158         action.execute() 
    159      
    160     def dragDrop(self, obj): 
    161         """Decide whether to drag or drop the image. 
    162            @type obj: string 
    163            @param obj: The name of the object within  
    164                        the dictionary 'self.buttons' 
    165            @return: None""" 
    166         if(data_drag.dragging == True): 
    167             self.dropObject(obj) 
    168         elif(data_drag.dragging == False): 
    169             self.dragObject(obj) 
    170                  
    171     def dragObject(self, obj): 
    172         """Drag the selected object. 
    173            @type obj: string 
    174            @param obj: The name of the object within 
    175                        the dictionary 'self.buttons' 
    176            @return: None""" 
    177         # get the widget from the container_gui with the name obj 
    178         drag_widget = self.container_gui.findChild(name = obj) 
    179         drag_item = drag_widget.item 
    180         # only drag if the widget is not empty 
    181         if (drag_item != None): 
    182             # get the item that the widget is 'storing' 
    183             data_drag.dragged_item = drag_widget.item 
    184             # get the up and down images of the widget 
    185             up_image = drag_widget.up_image 
    186             down_image = drag_widget.down_image 
    187             # set the mouse cursor to be the widget's image 
    188             self.setMouseCursor(up_image.source, down_image.source) 
    189             data_drag.dragged_image = up_image.source 
    190             data_drag.dragging = True 
    191             data_drag.dragged_widget = drag_widget 
    192             data_drag.dragged_container=self.container 
    193  
    194             # after dragging the 'item', set the widgets' images 
    195             # so that it has it's default 'empty' images 
    196             drag_widget.item = None 
    197             self.updateImage(drag_widget) 
    198              
    199     def dropObject(self, obj): 
    200         """Drops the object being dropped 
    201            @type obj: string 
    202            @param obj: The name of the object within 
    203                        the dictionary 'self.buttons'  
    204            @return: None""" 
    205         drop_widget = self.container_gui.findChild(name = obj) 
    206         if drop_widget != data_drag.dragged_widget: 
    207             data_drag.dragged_container.takeItem(data_drag.dragged_item) 
    208             self.container.placeItem(data_drag.dragged_item, drop_widget.index) 
    209         drop_widget.item = data_drag.dragged_item 
    210         self.updateImage(drop_widget) 
    211         data_drag.dragging = False 
    212         #reset the mouse cursor to the normal cursor 
    213         self.resetMouseCursor() 
    21419 
    21520class ExaminePopup(): 
  • trunk/game/scripts/inventory.py

    r571 r583  
    5454            raise ValueError ('I do not contain this item: %s' % item) 
    5555        self.items[self.item_lookup[item.ID]].takeItem(item) 
    56         self.item_lookup[item.ID] = None 
     56        del self.item_lookup[item.ID] 
    5757 
    5858    def replaceItem(self, old_item, new_item): 
  • trunk/game/scripts/objects/__init__.py

    r477 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/objects/action.py

    r579 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22#   This file is part of PARPG. 
    33 
  • trunk/game/scripts/objects/actors.py

    r568 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/objects/base.py

    r571 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/objects/composed.py

    r569 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
     
    9292        @param state: State of the object   
    9393        """ 
     94        super(CarryableItem, self).prepareStateForSaving(state) 
    9495        del state["in_container"] 
    9596 
  • trunk/game/scripts/objects/containers.py

    r563 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/objects/doors.py

    r563 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/quest_engine.py

    r579 r583  
    1 #!/usr/bin/python # pylint: disable-msg=C0111 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/sounds.py

    r313 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/scripts/viewbase.py

    r553 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_carryable_container.py

    r424 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_console.py

    r317 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_container.py

    r449 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_crate.py

    r286 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_dialogue.py

    r521 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_game_object.py

    r317 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_inventory.py

    r439 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_living.py

    r346 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_lockable.py

    r317 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_npc.py

    r324 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_objects_base.py

    r449 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_openable.py

    r317 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/game/tests/test_scriptable.py

    r317 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_single_item_container.py

    r451 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/tests/test_wearable.py

    r346 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33# This file is part of PARPG. 
  • trunk/game/utilities/agentXmlGen.py

    r365 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/utilities/dialogueChecker.py

    r370 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/utilities/parpg_check.py

    r351 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/tools/writing_editor/lib/__init__.py

    r234 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/run.py

    r218 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/__init__.py

    r218 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/dialogMap.py

    r280 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/parser.py

    r280 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/settings.py

    r217 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/syntaxHighlight.py

    r282 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/scripts/writingEditor.py

    r280 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/ui/__init__.py

    r218 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/ui/editor_ui.py

    r252 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
  • trunk/tools/writing_editor/ui/popupWindows.py

    r232 r583  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python # pylint: disable-msg=C0111 
    22 
    33#   This file is part of PARPG. 
Note: See TracChangeset for help on using the changeset viewer.