comparison dialoguecontroller.py @ 51:d3a9caba067b

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 98f26f7636d8
children
comparison
equal deleted inserted replaced
50:b4a525456c99 51:d3a9caba067b
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