示例#1
0
 def create_stairwell(self, location=None, up=False):
     location = CastleGenerator.create_stairwell(self, location=location, up=up)
     
     if up:
         self.add_connection(Direction.UP, *location)
     else:
         self.add_connection(Direction.DOWN, *location)
     
     return location
示例#2
0
 def create_exit(self, direction=None, location=None):
     location = CastleGenerator.create_exit(self, direction=direction, location=location)
     
     self.add_connection(direction, *location)
     
     return location
示例#3
0
 def generate(self, **options):
     self.map = CastleGenerator.generate(self, options)
示例#4
0
 def __init__(self, depth):
     Floor.__init__(self, depth)
     CastleGenerator.__init__(self, 
         zone  = "castle", 
         floor = "commons",
     )