示例#1
0
 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()))))
示例#2
0
 def print_item(self):
     name = gprint_colorize(self.name, color='blue')
     gprint('{}: {}'.format(name, self.description))
示例#3
0
 def print_item(self):
     name = gprint_colorize(self.name, color='blue')
     gprint('{}: {}'.format(name, self.description))
示例#4
0
 def print_room(self):
     gprint(self.name, 'bold_red_on_white')
     print("")
     gprint(self.description)