Changeset 476 for trunk/game/scripts/engine.py
- Timestamp:
- 02/02/10 14:41:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/game/scripts/engine.py
r445 r476 103 103 return 104 104 105 # Remove all currently loaded maps so we can start fresh105 # Remove all currently loaded maps so we can start fresh 106 106 self.view.deleteMaps(); 107 107 … … 119 119 self.game_state.PC.createBehaviour(self.view.active_map.agent_layer) 120 120 121 # In most maps we'll create the PC Instance internally. In these122 # cases we need a target position121 # In most maps we'll create the PC Instance internally. In these 122 # cases we need a target position 123 123 self.target_position = self.game_state.saved_pc_coordinates 124 124 125 # Load the current map125 # Load the current map 126 126 if self.game_state.current_map_file: 127 127 self.loadMap(self.game_state.current_map_name, \ … … 136 136 @type instance: fife.Instance 137 137 @param instance: FIFE instance corresponding to the object 138 @return: None 139 """ 138 @return: None""" 140 139 # create the extra data 141 140 extra = {} … … 148 147 self.addPC(layer, obj, instance) 149 148 else: 150 self.addObject(layer, obj, instance) 151 152 149 self.addObject(layer, obj, instance) 153 150 154 151 def addPC(self, layer, pc, instance): … … 160 157 @type instance: fife.Instance 161 158 @param instance: FIFE instance of PC 162 @return: None 163 """ 159 @return: None""" 164 160 # For now we copy the PC, in the future we will need to copy 165 161 # PC specifics between the different PC's … … 180 176 @type instance: fife.Instance 181 177 @param instance: FIFE instance of object 182 @return: None 183 """ 184 178 @return: None""" 185 179 ref = self.game_state.getObjectById(obj.ID, \ 186 180 self.game_state.current_map_name) … … 198 192 # create the agent 199 193 obj.setup() 200 201 194 # create the PC agent 202 195 obj.start()
Note: See TracChangeset
for help on using the changeset viewer.