comparison src/parpg/dialoguecontroller.py @ 78:c25c734bd2a7

Modifications to make talking with npcs possible again. Special actions won't work yet though.
author KarstenBock@gmx.net
date Thu, 08 Sep 2011 15:18:39 +0200
parents ad75fa042b99
children
comparison
equal deleted inserted replaced
77:8a7bb62f9f5d 78:c25c734bd2a7
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.getObjectById("PlayerCharacter").fifeagent) 47 npc.fifeagent.behaviour.talk(
48 self.model.game_state.\
49 getObjectById("PlayerCharacter").fifeagent
50 )
48 self.dialogue = self.view.hud.showDialogue(npc) 51 self.dialogue = self.view.hud.showDialogue(npc)
49 self.dialogue.initiateDialogue() 52 self.dialogue.initiateDialogue()
50 self.model.pause(True) 53 self.model.pause(True)
51 self.view.hud.enabled = False 54 self.view.hud.enabled = False
52 55