Mercurial > parpg-core
comparison src/parpg/dialoguecontroller.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 | 8b3890f17f94 |
children | c25c734bd2a7 |
comparison
equal
deleted
inserted
replaced
68:d7286cba42df | 69:ad75fa042b99 |
---|---|
42 self.view = view | 42 self.view = view |
43 | 43 |
44 def startTalk(self, npc): | 44 def startTalk(self, npc): |
45 if npc.dialogue is not None: | 45 if npc.dialogue is not None: |
46 self.model.active_map.centerCameraOnPlayer() | 46 self.model.active_map.centerCameraOnPlayer() |
47 npc.talk(self.model.game_state.player_character) | 47 npc.talk(self.model.game_state.getObjectById("PlayerCharacter").fifeagent) |
48 self.dialogue = self.view.hud.showDialogue(npc) | 48 self.dialogue = self.view.hud.showDialogue(npc) |
49 self.dialogue.initiateDialogue() | 49 self.dialogue.initiateDialogue() |
50 self.model.pause(True) | 50 self.model.pause(True) |
51 self.view.hud.enabled = False | 51 self.view.hud.enabled = False |
52 | 52 |