Safe Haskell | None |
---|---|
Language | Haskell2010 |
Field Of View scanning with a variety of algorithms. See https://github.com/LambdaHack/LambdaHack/wiki/Fov-and-los for discussion.
- dungeonPerception :: FovMode -> State -> StateServer -> Pers
- fidLidPerception :: COps -> FovMode -> PersLit -> FactionId -> LevelId -> Level -> Perception
- type PersLit = EnumMap LevelId (PerceptionLit, EnumMap FactionId ActorEqpBody)
- litInDungeon :: FovMode -> State -> StateServer -> PersLit
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..
litInDungeon :: FovMode -> State -> StateServer -> PersLit Source
Compute all lit positions in the dungeon