summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/test/findray.lua
Commit message (Collapse)AuthorAgeFilesLines
* New Lua library: feat.Jude Brown2009-11-271-1/+1
| | | | | | | | | | | | | | | | | | | Provides wrappers for all of the feat_is_XXX functions from terrain.cc, as well as a few other functions. Also provides a macro which can wrap a function to take: * a set of co-ordinates (parsed with grd(coord_def(x, y))) * a string (parsed with dungeon_feature_by_name) * an integer (cast into dungeon_feature_type, can be fetched from dgn.grid(x, y)) All of the feat library functions can be used in this manner. For example: * feat.is_wall(x, y) * feat.is_wall(dgn.grid(x, y)) * feat.is_wall(7) * feat.is_wall("rock_wall")
* Split debug lua bindings out to new library "debug".Robert Vollmert2009-10-201-5/+5
|
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-1/+1
|
* Correct findray test.Robert Vollmert2009-10-141-9/+10
| | | | | Now only targets cells that are not blocked by transparent walls etc. find_ray can't currently check for real visibility.
* Add test for find_ray.Robert Vollmert2009-10-141-0/+83
Tests for the existence of unobstructed rays to points within LOS.