Beispiel #1
0
    def __init__(self, char_id):
        '''Constructor for the PartyMember class. Initialises a Character object.

        args:
            char_id: str; a unique identifier for the character
        '''
        Character.__init__(self, char_id)

        info = load_party_info(self._id)
        self._name = info[0]
        self._lvl = info[1]
Beispiel #2
0
    def __init__(self, char_id):
        '''Constructor for the monster class. Initialises a Character object.

        args:
            char_id: str; a unique identifier for the monster
        '''
        Character.__init__(self, char_id)

        self._info = load_monster_info(self._id)
        self._inventory = load_inventory(self._id)

        self._default_action = self._set_default_action()