D10d3

rooms.py

Nov 13th, 2016
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import engine
  2.  
  3. class TestRoom(engine.Room):
  4.     def __init__(self):
  5.         name = "Test room broom room vroom vroom"
  6.         desc = "This is a shady place between halls, we keep brooms here"
  7.         super(TestRoom, self).__init__(name, desc) # here
  8.         self.addExit("NORTH", "North hall")
  9.         self.addExit("SOUTH", "South hall")
  10.         self.addItem("Broom")
  11.        
  12. class NorthHall(engine.Room):
  13.     def __init__(self):
  14.         name = "North Hall"
  15.         desc = "This hall contains a fnord"
  16.         super(NorthHall, self).__init__(name, desc) # here
  17.         self.addExit("SOUTH", "Test Room")
  18.         self.addItem("Fnord")
  19.        
  20. class SouthHall(engine.Room):
  21.     def __init__(self):
  22.         name = "South Hall"
  23.         desc = "This hall is awesome, you feel more awesome just being here"
  24.         super(SouthHal, self).__init__(name, desc) # here
  25.         self.addExit("North", "Test Room")
  26.         self.addItem("Awesomeness")
RAW Paste Data