コード例 #1
0
ファイル: floors.py プロジェクト: Ardnived/Regicide
 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
ファイル: floors.py プロジェクト: Ardnived/Regicide
 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
ファイル: floors.py プロジェクト: Ardnived/Regicide
 def generate(self, **options):
     self.map = CastleGenerator.generate(self, options)
コード例 #4
0
ファイル: floors.py プロジェクト: Ardnived/Regicide
 def __init__(self, depth):
     Floor.__init__(self, depth)
     CastleGenerator.__init__(self, 
         zone  = "castle", 
         floor = "commons",
     )