summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-12 18:10:21 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-12 18:10:21 +1000
commitc6f5386588f7d4d43c4c40a7ca502ec6912ac72c (patch)
treeefc20934b143e1f77c3087bd8ecc49ebf7cb503e /crawl-ref/source/item_use.cc
parent87f6bc7bfb79dd38454d52945ed1bef5cbb5ffbd (diff)
downloadcrawl-ref-c6f5386588f7d4d43c4c40a7ca502ec6912ac72c.tar.gz
crawl-ref-c6f5386588f7d4d43c4c40a7ca502ec6912ac72c.zip
More new dungeon build functions, and some adjustments.
Adjusted _valid_coord to allow the checking of a coordinate without generating an error message; moved fill_area's filling code to its own function so that it can be called by multiple functions; implemented count_passable_neighbors in C++ instead of Lua, to make it more accessible in multiple layouts. Implemented "make_box" and "make_box_doors"; both work on a series of two coordinates (top left and bottom right corners), the first making a box of specified width and using specified glyphs for walls and floor, while the second function will randomly add doors to the box, ignoring corners. make_box_doors will not work on instances where the wall thickness is more than 1 square; this could be adjusted at a later date.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
0 files changed, 0 insertions, 0 deletions