Example #1
0
 def enter(self):
     
     if self.times_entered == 0 and self.room_init_description != "":
         Game.output(self.room_init_description + "\n")
     
     self.describe()
     Game.output("")
     self.describe_exits()
     self.list_items()
     
     self.times_entered += 1
Example #2
0
 def list_items(self):
     
     if len(self.things) > 0:
         
         item_build = []
         
         for item in self.things:
             if self.things[item].list == True:
                 item_build.append(self.things[item].list_name)
         
         if len(item_build) > 0:
             Game.output("You can also see %s" % ", ".join(item_build))
Example #3
0
 def describe_exits(self):
     
     if len(self.exits) > 0:
     
         exit_build = []
     
         for direction in self.exits:
             if self.exits[direction].list == True:
                 exit_build.append(self.exits[direction].list_name)
         
         if len(exit_build) > 0:
             Game.output("There are exits %s" % ", ".join(exit_build))
Example #4
0
 def describe(self):
     Game.output(self.room_description)
Example #5
0
 def describe(self):
     Game.output(self.thing_description)