LambdaHack-0.4.9.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone

Game.LambdaHack.Server.Fov

Description

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

Synopsis

Documentation

dungeonPerception :: FovMode -> State -> StateServer -> PersSource

Calculate the perception of the whole dungeon.

fidLidPerception :: COps -> FovMode -> PersLit -> FactionId -> LevelId -> Level -> PerceptionSource

Calculate faction's perception of a level based on the lit tiles cache..

litInDungeon :: FovMode -> State -> StateServer -> PersLitSource

Compute all lit positions in the dungeon

data PerceptionLit Source

All lit positions on a level.

Instances