diff src/parpg/gamesceneview.py @ 69:ad75fa042b99

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents 1fd2201f5c36
children 62cff91a19cb
line wrap: on
line diff
--- a/src/parpg/gamesceneview.py	Tue Sep 06 15:21:36 2011 +0200
+++ b/src/parpg/gamesceneview.py	Tue Sep 06 15:22:51 2011 +0200
@@ -62,7 +62,7 @@
     def onWalk(self, click):
         """Callback sample for the context menu."""
         self.hud.hideContainer()
-        self.model.game_state.player_character.run(click)
+        self.model.game_state.getObjectById("PlayerCharacter").fifeagent.run(click)
 
     def refreshTopLayerTransparencies(self):
         """Fade or unfade TopLayer instances if the PlayerCharacter 
@@ -72,7 +72,7 @@
 
         # get the PlayerCharacter's screen coordinates
         camera = self.model.active_map.cameras[self.model.active_map.my_cam_id]
-        point = self.model.game_state.player_character.\
+        point = self.model.game_state.getObjectById("PlayerCharacter").fifeagent.\
                                         behaviour.agent.getLocation()
         scr_coords = camera.toScreenCoordinates(point.getMapCoordinates())
 
@@ -123,7 +123,7 @@
                     item = self.model.objectActive(self.highlight_obj)
                     if item is not None:
                         self.displayObjectText(self.highlight_obj, 
-                                                    item.name)
+                                                    item.description.view_name)
             else:
                 self.model.active_map.outline_renderer.removeAllOutlines()
                 self.highlight_obj = None