Mercurial > parpg-core
comparison src/parpg/gamesceneview.py @ 79:62cff91a19cb
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 | ad75fa042b99 |
children |
comparison
equal
deleted
inserted
replaced
78:c25c734bd2a7 | 79:62cff91a19cb |
---|---|
60 obj.say(str(text), time) | 60 obj.say(str(text), time) |
61 | 61 |
62 def onWalk(self, click): | 62 def onWalk(self, click): |
63 """Callback sample for the context menu.""" | 63 """Callback sample for the context menu.""" |
64 self.hud.hideContainer() | 64 self.hud.hideContainer() |
65 self.model.game_state.getObjectById("PlayerCharacter").fifeagent.run(click) | 65 self.model.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.run(click) |
66 | 66 |
67 def refreshTopLayerTransparencies(self): | 67 def refreshTopLayerTransparencies(self): |
68 """Fade or unfade TopLayer instances if the PlayerCharacter | 68 """Fade or unfade TopLayer instances if the PlayerCharacter |
69 is under them.""" | 69 is under them.""" |
70 if not self.model.active_map: | 70 if not self.model.active_map: |