Safe Haskell | None |
---|
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
- data PerceptionLit
- type ActorEqpBody = [((ActorId, Actor), [ItemFull])]
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
type ActorEqpBody = [((ActorId, Actor), [ItemFull])]Source