Mercurial > parpg-core
comparison src/parpg/objects/action.py @ 30:94cb5843dcbb
Modifications to use the grease manager and modes
author | KarstenBock@gmx.net |
---|---|
date | Tue, 12 Jul 2011 12:31:53 +0200 |
parents | d60f1dab8469 |
children | 8b3890f17f94 |
comparison
equal
deleted
inserted
replaced
29:ad18c3f912c5 | 30:94cb5843dcbb |
---|---|
313 if self.npc.dialogue is not None: | 313 if self.npc.dialogue is not None: |
314 dialogue_controller = DialogueController(self.controller.engine, | 314 dialogue_controller = DialogueController(self.controller.engine, |
315 self.view, | 315 self.view, |
316 self.model, | 316 self.model, |
317 self.controller.application) | 317 self.controller.application) |
318 self.controller.application.pushController(dialogue_controller) | 318 self.controller.application.push_mode(dialogue_controller) |
319 dialogue_controller.startTalk(self.npc) | 319 dialogue_controller.startTalk(self.npc) |
320 else: | 320 else: |
321 self.npc.behaviour.agent.say("Leave me alone!", 1000) | 321 self.npc.behaviour.agent.say("Leave me alone!", 1000) |
322 | 322 |
323 self.model.game_state.player_character.behaviour.idle() | 323 self.model.game_state.player_character.behaviour.idle() |