LambdaHack-0.2.14: A roguelike game engine in early development

Safe HaskellNone
LanguageHaskell2010

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 -> Pers Source

Calculate the perception of the whole dungeon.

fidLidPerception :: COps -> FovMode -> PersLit -> FactionId -> LevelId -> Level -> Perception Source

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

type PersLit = EnumMap LevelId (PerceptionLit, EnumMap FactionId ActorEqpBody) Source

litInDungeon :: FovMode -> State -> StateServer -> PersLit Source

Compute all lit positions in the dungeon