diff --git a/roguebasin/map.py b/roguebasin/map.py index 5a2bc73..158d3c1 100644 --- a/roguebasin/map.py +++ b/roguebasin/map.py @@ -111,10 +111,20 @@ class RoomsAndCorridorsGenerator(MapGenerator): return tiles + def generate_tunnel(self, start_room_bounds: Rect, end_room_bounds: Rect): + pass + + def __rect_from_bsp_node(self, node: tcod.bsp.BSP) -> Rect: + return Rect(Point(node.x, node.y), Size(node.width, node.height)) + + class RectangularRoom: def __init__(self, bounds: Rect): self.bounds = bounds @property def center(self) -> Point: - return self.bounds.midpoint \ No newline at end of file + return self.bounds.midpoint + + def __repr__(self) -> str: + return f'{self.__class__.__name__}({self.bounds})' \ No newline at end of file