[−][src]Trait doryen_fov::FovAlgorithm
Some algorithm to compute a field of view x,y : observer position on the map max_radius : max distance in cells where the observer can see. 0 = infinite light_walls : are walls limiting the field of view inside the field of view ?
Required methods
fn compute_fov(
&mut self,
map: &mut MapData,
x: usize,
y: usize,
max_radius: usize,
light_walls: bool
)
&mut self,
map: &mut MapData,
x: usize,
y: usize,
max_radius: usize,
light_walls: bool
)
Implementors
impl FovAlgorithm for FovDummy
[src]
fn compute_fov(
&mut self,
map: &mut MapData,
_x: usize,
_y: usize,
_max_radius: usize,
_light_walls: bool
)
[src]
&mut self,
map: &mut MapData,
_x: usize,
_y: usize,
_max_radius: usize,
_light_walls: bool
)
impl FovAlgorithm for FovRecursiveShadowCasting
[src]
fn compute_fov(
&mut self,
map: &mut MapData,
x: usize,
y: usize,
max_radius_p: usize,
light_walls: bool
)
[src]
&mut self,
map: &mut MapData,
x: usize,
y: usize,
max_radius_p: usize,
light_walls: bool
)