PrecisePermissiveView¶ class PrecisePermissiveView(map: tuple[int, int], passes_light: Callable[[Tile], bool])¶ Bases: object Executes the precise permissive view algorithm from roguebasin.com. Parameters: map – dimensions of the map passes_light – function that returns whether the tile is see through get_view(center: Tile, radius: int, visible_callback: Callable[[Tile], None]) → None¶ Executes the algorithm cenetered on the supplied tile. Parameters: center – Center of the field radius – Distance of vision visible_callback – function called for each visible tile