Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
 def generate(self, **options):
     self.map = CastleGenerator.generate(self, options)
Ejemplo n.º 4
0
 def __init__(self, depth):
     Floor.__init__(self, depth)
     CastleGenerator.__init__(self, 
         zone  = "castle", 
         floor = "commons",
     )