comparison src/parpg/dialogueactions.py @ 86:2e307c4f78e3

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 1fd2201f5c36
children bb0e09112a1f
comparison
equal deleted inserted replaced
85:cd12294d1981 86:2e307c4f78e3
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 """