diff options
| author | Alexander Gavrilov | 2012-04-26 18:51:39 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-26 18:51:39 +0400 |
| commit | 82a0e52a3eeb55d62dd51cf92b5b1b26d0cc4c66 (patch) | |
| tree | 4388ab4532ab7dc4b47147cf2368de4a3ece00e6 /Lua API.html | |
| parent | 16ee049664765f2644d2ef83ad15d5ab101cd4e2 (diff) | |
| download | dfhack-82a0e52a3eeb55d62dd51cf92b5b1b26d0cc4c66.tar.gz dfhack-82a0e52a3eeb55d62dd51cf92b5b1b26d0cc4c66.tar.bz2 dfhack-82a0e52a3eeb55d62dd51cf92b5b1b26d0cc4c66.tar.xz | |
Add api to check the walkable cache, and update flow_forbid in liquids.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html index 3e08b3be..fd2004b8 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1015,6 +1015,15 @@ Returns <em>false</em> in case of error.</p> <li><p class="first"><tt class="docutils literal">dfhack.maps.getLocalInitFeature(region_coord2d,index)</tt></p> <p>Returns the local feature object with the given region coords and index.</p> </li> +<li><p class="first"><tt class="docutils literal">dfhack.maps.canWalkBetween(pos1, pos2)</tt></p> +<p>Checks if a dwarf may be able to walk between the two tiles, +using a pathfinding cache maintained by the game. Note that +this cache is only updated when the game is unpaused, and thus +can get out of date if doors are forbidden or unforbidden, or +tools like liquids or tiletypes are used. It also cannot possibly +take into account anything that depends on the actual units, like +burrows, or the presence of invaders.</p> +</li> </ul> </div> <div class="section" id="burrows-module"> |
