Ignore:
Timestamp:
02/02/10 14:41:03 (10 years ago)
Author:
maximinus_parpg
Message:

Edited and tidied up files.
Generally a mix of spelling mistakes, non pep-8 code
and other things.

File:
1 edited

Legend:

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

    r445 r476  
    103103            return 
    104104         
    105         #Remove all currently loaded maps so we can start fresh 
     105        # Remove all currently loaded maps so we can start fresh 
    106106        self.view.deleteMaps(); 
    107107         
     
    119119        self.game_state.PC.createBehaviour(self.view.active_map.agent_layer) 
    120120         
    121         #In most maps we'll create the PC Instance internally. In these 
    122         #cases we need a target position 
     121        # In most maps we'll create the PC Instance internally. In these 
     122        # cases we need a target position 
    123123        self.target_position = self.game_state.saved_pc_coordinates 
    124124         
    125         #Load the current map 
     125        # Load the current map 
    126126        if self.game_state.current_map_file: 
    127127            self.loadMap(self.game_state.current_map_name, \ 
     
    136136           @type instance: fife.Instance 
    137137           @param instance: FIFE instance corresponding to the object 
    138            @return: None 
    139         """ 
     138           @return: None""" 
    140139        # create the extra data 
    141140        extra = {} 
     
    148147            self.addPC(layer, obj, instance) 
    149148        else: 
    150             self.addObject(layer, obj, instance) 
    151  
    152          
     149            self.addObject(layer, obj, instance)  
    153150 
    154151    def addPC(self, layer, pc, instance): 
     
    160157           @type instance: fife.Instance 
    161158           @param instance: FIFE instance of PC 
    162            @return: None 
    163         """ 
     159           @return: None""" 
    164160        # For now we copy the PC, in the future we will need to copy 
    165161        # PC specifics between the different PC's 
     
    180176           @type instance: fife.Instance 
    181177           @param instance: FIFE instance of object 
    182            @return: None 
    183         """ 
    184  
     178           @return: None""" 
    185179        ref = self.game_state.getObjectById(obj.ID, \ 
    186180                                            self.game_state.current_map_name)  
     
    198192            # create the agent 
    199193            obj.setup() 
    200              
    201194            # create the PC agent 
    202195            obj.start() 
Note: See TracChangeset for help on using the changeset viewer.