class NPC:
# initalize the NPC
- def __init__ (self, charname, row, col, image=None, portrait=None, dialogue_set=set(),
+ def __init__ (self, charname, row, col, image=None, portrait=None, dialogues=[],
currentdialog=0, is_dead=False):
# name of the character
self.charname = charname
self.portrait = portrait
# dialogue set for NPC
# each dialogue in the set is a path to an XML file containing the dialogue
- self.dialogue_set = dialogue_set
+ self.dialogues = dialogues
# index of the current dialogue which will be initiated with the main
# character
self.currentdialog = currentdialog
# Bulisa is Butaba's friend
class Bulisa (NPC):
- def __init__ (self, row, col, image, portrait, dialogue_set=set(), currentdialog=0):
- NPC.__init__ (self, "Bulisa", row, col, image, portrait, dialogue_set, currentdialog)
+ def __init__ (self, row, col, image, portrait, dialogues=[], currentdialog=0):
+ NPC.__init__ (self, "Bulisa", row, col, image, portrait, dialogues, currentdialog)