def print_room(self): gprint(self.name, color='bold_red_on_white') print("") gprint(self.description) if self.items: print("") gprint('You see the following items:') for item in self.items: gprint(Item.get_item(item).string, indent=2) if self.neighbors: print("") gprint('Exits: {}'.format(sorted(list(self.neighbors.keys()))))
def print_item(self): name = gprint_colorize(self.name, color='blue') gprint('{}: {}'.format(name, self.description))
def print_room(self): gprint(self.name, 'bold_red_on_white') print("") gprint(self.description)