comparison dialoguecontroller.py @ 44:98f26f7636d8

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 7b31de1dc964
children d3a9caba067b
comparison
equal deleted inserted replaced
43:8f9e9f47c363 44:98f26f7636d8
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