LambdaHack-0.2.6: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.FOV

Description

Field Of View scanning with a variety of algorithms. See https://github.com/kosmikus/LambdaHack/wiki/Fov-and-los for discussion.

Synopsis

Documentation

data FovMode Source

Field Of View scanning mode.

Constructors

Shadow

restrictive shadow casting

Permissive

permissive FOV

Digital Int

digital FOV with the given radius

Blind

only feeling out adjacent tiles by touch

Instances

fullscanSource

Arguments

:: Ops TileKind

tile content, determines clear tiles

-> FovMode

scanning mode

-> Point

location of the spectacor

-> Level

the map that is scanned

-> [Point] 

Perform a full scan for a given location. Returns the locations that are currently in the field of view. The Field of View algorithm to use, passed in the second argument, is set in the config file.