예제 #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)