This file is indexed.

/usr/share/doc/libghc-lambdahack-doc/html/Game-LambdaHack-Server-Fov.html is in libghc-lambdahack-doc 0.5.0.0-2build5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
8
9
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Game.LambdaHack.Server.Fov</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Game-LambdaHack-Server-Fov.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Game-LambdaHack-Server-Fov.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">LambdaHack-0.5.0.0: A game engine library for roguelike dungeon crawlers</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Game.LambdaHack.Server.Fov</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Internal operations</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Field Of View scanning with a variety of algorithms.
 See <a href="https://github.com/LambdaHack/LambdaHack/wiki/Fov-and-los">https://github.com/LambdaHack/LambdaHack/wiki/Fov-and-los</a>
 for discussion.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:dungeonPerception">dungeonPerception</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Common-State.html#t:State">State</a> -&gt; <a href="Game-LambdaHack-Server-State.html#t:StateServer">StateServer</a> -&gt; <a href="Game-LambdaHack-Common-Perception.html#t:Pers">Pers</a></li><li class="src short"><a href="#v:fidLidPerception">fidLidPerception</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PersLit">PersLit</a> -&gt; <a href="Game-LambdaHack-Common-Misc.html#t:FactionId">FactionId</a> -&gt; <a href="Game-LambdaHack-Common-Misc.html#t:LevelId">LevelId</a> -&gt; <a href="Game-LambdaHack-Common-Level.html#t:Level">Level</a> -&gt; <a href="Game-LambdaHack-Common-Perception.html#t:Perception">Perception</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:PersLit">PersLit</a> = <a href="file:///usr/share/doc/libghc-enummapset-th-doc/html/Data-EnumMap-Lazy.html#t:EnumMap">EnumMap</a> <a href="Game-LambdaHack-Common-Misc.html#t:LevelId">LevelId</a> (<a href="file:///usr/share/doc/libghc-enummapset-th-doc/html/Data-EnumMap-Strict.html#t:EnumMap">EnumMap</a> <a href="Game-LambdaHack-Common-Misc.html#t:FactionId">FactionId</a> [(<a href="Game-LambdaHack-Common-Actor.html#t:Actor">Actor</a>, <a href="Game-LambdaHack-Server-State.html#t:FovCache3">FovCache3</a>)], <a href="Game-LambdaHack-Common-PointArray.html#t:Array">Array</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Game-LambdaHack-Common-PointArray.html#t:Array">Array</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:litInDungeon">litInDungeon</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Common-State.html#t:State">State</a> -&gt; <a href="Game-LambdaHack-Server-State.html#t:StateServer">StateServer</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PersLit">PersLit</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:PerceptionReachable">PerceptionReachable</a> = <a href="#v:PerceptionReachable">PerceptionReachable</a> {<ul class="subs"><li><a href="#v:preachable">preachable</a> :: [<a href="Game-LambdaHack-Common-Point.html#t:Point">Point</a>]</li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:PerceptionDynamicLit">PerceptionDynamicLit</a> = <a href="#v:PerceptionDynamicLit">PerceptionDynamicLit</a> {<ul class="subs"><li><a href="#v:pdynamicLit">pdynamicLit</a> :: [<a href="Game-LambdaHack-Common-Point.html#t:Point">Point</a>]</li></ul>}</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:dungeonPerception" class="def">dungeonPerception</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Common-State.html#t:State">State</a> -&gt; <a href="Game-LambdaHack-Server-State.html#t:StateServer">StateServer</a> -&gt; <a href="Game-LambdaHack-Common-Perception.html#t:Pers">Pers</a> <a href="src/Game-LambdaHack-Server-Fov.html#dungeonPerception" class="link">Source</a> <a href="#v:dungeonPerception" class="selflink">#</a></p><div class="doc"><p>Calculate the perception of the whole dungeon.</p></div></div><div class="top"><p class="src"><a id="v:fidLidPerception" class="def">fidLidPerception</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PersLit">PersLit</a> -&gt; <a href="Game-LambdaHack-Common-Misc.html#t:FactionId">FactionId</a> -&gt; <a href="Game-LambdaHack-Common-Misc.html#t:LevelId">LevelId</a> -&gt; <a href="Game-LambdaHack-Common-Level.html#t:Level">Level</a> -&gt; <a href="Game-LambdaHack-Common-Perception.html#t:Perception">Perception</a> <a href="src/Game-LambdaHack-Server-Fov.html#fidLidPerception" class="link">Source</a> <a href="#v:fidLidPerception" class="selflink">#</a></p><div class="doc"><p>Calculate faction's perception of a level based on the lit tiles cache.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:PersLit" class="def">PersLit</a> = <a href="file:///usr/share/doc/libghc-enummapset-th-doc/html/Data-EnumMap-Lazy.html#t:EnumMap">EnumMap</a> <a href="Game-LambdaHack-Common-Misc.html#t:LevelId">LevelId</a> (<a href="file:///usr/share/doc/libghc-enummapset-th-doc/html/Data-EnumMap-Strict.html#t:EnumMap">EnumMap</a> <a href="Game-LambdaHack-Common-Misc.html#t:FactionId">FactionId</a> [(<a href="Game-LambdaHack-Common-Actor.html#t:Actor">Actor</a>, <a href="Game-LambdaHack-Server-State.html#t:FovCache3">FovCache3</a>)], <a href="Game-LambdaHack-Common-PointArray.html#t:Array">Array</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Game-LambdaHack-Common-PointArray.html#t:Array">Array</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) <a href="src/Game-LambdaHack-Server-Fov.html#PersLit" class="link">Source</a> <a href="#t:PersLit" class="selflink">#</a></p><div class="doc"><p>The cache of FOV information for a level, such as sight, smell
 and light radiuses for each actor and bitmaps of clear and lit positions.</p></div></div><div class="top"><p class="src"><a id="v:litInDungeon" class="def">litInDungeon</a> :: <a href="Game-LambdaHack-Content-RuleKind.html#t:FovMode">FovMode</a> -&gt; <a href="Game-LambdaHack-Common-State.html#t:State">State</a> -&gt; <a href="Game-LambdaHack-Server-State.html#t:StateServer">StateServer</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PersLit">PersLit</a> <a href="src/Game-LambdaHack-Server-Fov.html#litInDungeon" class="link">Source</a> <a href="#v:litInDungeon" class="selflink">#</a></p><div class="doc"><p>Compute all lit positions in the dungeon.</p></div></div><h1 id="g:1">Internal operations</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:PerceptionReachable" class="def">PerceptionReachable</a> <a href="src/Game-LambdaHack-Server-Fov.html#PerceptionReachable" class="link">Source</a> <a href="#t:PerceptionReachable" class="selflink">#</a></p><div class="doc"><p>Visually reachable positions (light passes through them to the actor).
 The list may contain (many) repetitions.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:PerceptionReachable" class="def">PerceptionReachable</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:preachable" class="def">preachable</a> :: [<a href="Game-LambdaHack-Common-Point.html#t:Point">Point</a>]</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:PerceptionReachable" class="caption collapser" onclick="toggleSection('i:PerceptionReachable')">Instances</p><div id="section.i:PerceptionReachable" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PerceptionReachable:Show:1" class="instance expander" onclick="toggleSection('i:id:PerceptionReachable:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionReachable">PerceptionReachable</a></span> <a href="src/Game-LambdaHack-Server-Fov.html#line-42" class="link">Source</a> <a href="#t:PerceptionReachable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PerceptionReachable:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionReachable">PerceptionReachable</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionReachable">PerceptionReachable</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Game-LambdaHack-Server-Fov.html#t:PerceptionReachable">PerceptionReachable</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:PerceptionDynamicLit" class="def">PerceptionDynamicLit</a> <a href="src/Game-LambdaHack-Server-Fov.html#PerceptionDynamicLit" class="link">Source</a> <a href="#t:PerceptionDynamicLit" class="selflink">#</a></p><div class="doc"><p>All positions lit by dynamic lights on a level. Shared by all factions.
 The list may contain (many) repetitions.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:PerceptionDynamicLit" class="def">PerceptionDynamicLit</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:pdynamicLit" class="def">pdynamicLit</a> :: [<a href="Game-LambdaHack-Common-Point.html#t:Point">Point</a>]</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:PerceptionDynamicLit" class="caption collapser" onclick="toggleSection('i:PerceptionDynamicLit')">Instances</p><div id="section.i:PerceptionDynamicLit" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PerceptionDynamicLit:Show:1" class="instance expander" onclick="toggleSection('i:id:PerceptionDynamicLit:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionDynamicLit">PerceptionDynamicLit</a></span> <a href="src/Game-LambdaHack-Server-Fov.html#line-48" class="link">Source</a> <a href="#t:PerceptionDynamicLit" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PerceptionDynamicLit:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionDynamicLit">PerceptionDynamicLit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Game-LambdaHack-Server-Fov.html#t:PerceptionDynamicLit">PerceptionDynamicLit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Game-LambdaHack-Server-Fov.html#t:PerceptionDynamicLit">PerceptionDynamicLit</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>