[][src]Trait doryen_fov::FovAlgorithm

pub trait FovAlgorithm {
    fn compute_fov(
        &mut self,
        map: &mut MapData,
        x: usize,
        y: usize,
        max_radius: usize,
        light_walls: bool
    ); }

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
)

Loading content...

Implementors

impl FovAlgorithm for FovDummy[src]

impl FovAlgorithm for FovRecursiveShadowCasting[src]

impl FovAlgorithm for FovRestrictive[src]

Loading content...