Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dcss:help:maps:lua:modules:dgn:travel [2014-10-04 06:55]
infiniplex Page moved to general LUA modules area
— (current)
Line 1: Line 1:
-====== Travel and Exclusion Functions ====== 
- 
-These functions are mostly for manipulating travel exclusions items. 
- 
-This list is taken from [[https://gitorious.org/crawl/crawl/blobs/master/crawl-ref/source/l_travel.cc|l_travel.cc]]. 
- 
-===== Travel Exclusions ===== 
- 
-There should also be a function to test if there is a travel exclusion at a spot. 
- 
-==== set_exclude ==== 
- 
-Syntax: 
-<code lua> 
-set_exclude ( x, y, radius ) 
-</code> 
- 
-Parameters: 
-  * ''x'' (int, required): The x coordinate 
-  * ''y'' (int, required): The y coordinate 
-  * ''radius'' (int, default LOS): The radius for the travel exclusion 
- 
-Returns: N/A 
- 
-This function places a travel exclusion with radius ''radius'' at position ''(x, y)''.  What does it do if there already is one? 
- 
-==== del_exclude ==== 
- 
-Syntax: 
-<code lua> 
-del_exclude ( x, y ) 
-</code> 
- 
-Parameters: 
-  * ''x'' (int, required): The x coordinate 
-  * ''y'' (int, required): The y coordinate 
- 
-Returns: N/A 
- 
-This function removes a travel exclusion at position ''(x, y)''.  What does it do if there isn't one? 
- 
-===== Querying Features ===== 
-I believe these are duplicates of functions in the [[dcss:help:maps:lua:modules:feat:start|Features Module]].  If not, they should probably be in there. 
- 
-They take a feature name as a parameter. 
- 
-==== feature_traversable ==== 
-==== feature_solid ==== 
- 
-===== Miscellaneous Functions ===== 
-==== find_deepest_explored ===== 
- 
-It takes the branch name as a string as a parameter. 
  
Logged in as: Anonymous (VIEWER)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki