diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-29 15:32:50 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-29 15:38:17 +1000 |
commit | 2943dc2999832721dddb7a591a927e9eb2eb4976 (patch) | |
tree | 9d5a356975c1a2e64ac2f3b7bdb37fc79bb6467c /crawl-ref/source/dat/database | |
parent | e44ce374c8feff8cd3a7848195e2aa851d5ff971 (diff) | |
download | crawl-ref-2943dc2999832721dddb7a591a927e9eb2eb4976.tar.gz crawl-ref-2943dc2999832721dddb7a591a927e9eb2eb4976.zip |
New Lua iterators: point_iterator, slave_iterator, tweaks.
The first (point_iterator) accepts a table of points (such as the ones
return by dgn.find_marker_positions_by_prop, or any other function which
returns points) and is filterable and stateful.
The second is a quick wrapper over dgn.find_marker_positions_by_prop.
Tweaked rectangle_iterator to supply an "rvi" (return value instead)
which will store the value of the filter instead of expecting the filter
to return a true or false value. Setting this to false will behave as
before; setting it to true allows us to have the filter alter the point
(mons_at, items_at, marker_at_pos, etc).
Diffstat (limited to 'crawl-ref/source/dat/database')
0 files changed, 0 insertions, 0 deletions