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
def create_exit(self, direction=None, location=None): location = CastleGenerator.create_exit(self, direction=direction, location=location) self.add_connection(direction, *location) return location
def generate(self, **options): self.map = CastleGenerator.generate(self, options)
def __init__(self, depth): Floor.__init__(self, depth) CastleGenerator.__init__(self, zone = "castle", floor = "commons", )