comparison dialogueactions.py @ 59:535801aec63e

DialogueGUI now acceps met_fnc and meet_fnc in its constructor and stores them in its game_state as "met" and "meet" respectively.
author KarstenBock@gmx.net
date Fri, 09 Sep 2011 16:12:46 +0200
parents 7a89ea5404b1
children e719bf53c25a
comparison
equal deleted inserted replaced
58:d4f213b99d41 59:535801aec63e
105 npc_id = self.npc_id 105 npc_id = self.npc_id
106 # NOTE Technomage 2010-11-13: This print statement seems overly 106 # NOTE Technomage 2010-11-13: This print statement seems overly
107 # verbose, so I'm logging it as an INFO message instead. 107 # verbose, so I'm logging it as an INFO message instead.
108 # print("You've met {0}!".format(npc_id)) 108 # print("You've met {0}!".format(npc_id))
109 self.logger.info("You've met {0}!".format(npc_id)) 109 self.logger.info("You've met {0}!".format(npc_id))
110 game_state['pc'].meet(npc_id) 110 game_state['meet'](npc_id)
111 DialogueAction.registerAction(MeetAction) 111 DialogueAction.registerAction(MeetAction)
112 112
113 113
114 class InventoryAction(DialogueAction): 114 class InventoryAction(DialogueAction):
115 """ 115 """