Safe Haskell | None |
---|
Field Of View scanning with a variety of algorithms. See https://github.com/kosmikus/LambdaHack/wiki/Fov-and-los for discussion.
Documentation
dungeonPerception :: COps -> FovMode -> State -> PersSource
Calculate the perception of the whole dungeon.
levelPerception :: COps -> State -> FovMode -> FactionId -> LevelId -> Level -> PerceptionSource
Calculate perception of the level.
:: Ops TileKind | tile content, determines clear tiles |
-> FovMode | scanning mode |
-> Point | position of the spectator |
-> Level | the map that is scanned |
-> [Point] |
Perform a full scan for a given position. Returns the positions 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. The actor's own position is considred reachable by him.