Move the BSP implementation to BSPRectMethod
This commit is contained in:
parent
040803fe61
commit
fd068268f5
4 changed files with 118 additions and 95 deletions
|
@ -115,3 +115,6 @@ class FreeformRoom(Room):
|
|||
for y, x in np.ndindex(self.tiles.shape):
|
||||
if self.tiles[y, x]['walkable']:
|
||||
yield Point(x, y) + room_origin_vector
|
||||
|
||||
def __str__(self):
|
||||
return '\n'.join(''.join(chr(i['light']['ch']) for i in row) for row in self.tiles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue