diff gamesceneview.py @ 52:3dfd26b1c7ef

Modifications to make the player agent move around by clicking with the mouse.
author KarstenBock@gmx.net
date Thu, 08 Sep 2011 18:23:06 +0200
parents 98f26f7636d8
children
line wrap: on
line diff
--- a/gamesceneview.py	Thu Sep 08 15:18:39 2011 +0200
+++ b/gamesceneview.py	Thu Sep 08 18:23:06 2011 +0200
@@ -62,7 +62,7 @@
     def onWalk(self, click):
         """Callback sample for the context menu."""
         self.hud.hideContainer()
-        self.model.game_state.getObjectById("PlayerCharacter").fifeagent.run(click)
+        self.model.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.run(click)
 
     def refreshTopLayerTransparencies(self):
         """Fade or unfade TopLayer instances if the PlayerCharacter