summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/flood_find.h
Commit message (Collapse)AuthorAgeFilesLines
* More formatting fixes for return (...);Neil Moore2013-11-151-1/+1
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* Use RMODE_CONNECTIVITY for flood find.Neil Moore2013-10-021-3/+3
| | | | | We started using RMODE_CONNECTIVITY in find_first_from in 0.10-a0-3058-gb8177da. Extend that to also use it in the other methods.
* Merge branch 'master' into glasnostAdam Borowski2012-08-311-3/+3
|\ | | | | | | Yay for conflicts galore (wax removal, std:: purge, tileidx changes).
| * Use std namespace.Raphael Langella2012-08-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* | Drop the code for displaying/handling/etc secret doors.Adam Borowski2012-07-111-1/+0
|/
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-10/+10
|
* Ignore player swimming etc for connectivity checks.Neil Moore2012-01-041-1/+1
| | | | | | | | | | | | | | The dungeon should not arrange itself to suit the player's abilities. Besides this general philosophical objection, there are a few actual bugs caused by this behaviour: * Entering a vaults level in bat form (which cannot open doors) causes a level generation failure. * travel_avoid_terrain = shallow_water can cause vaults to be vetoed. * Permanent flight or levitation could allow item shifting to push an item (even a critical item) into lava or deep water while trying to save it. Fixes #4722.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* flood_find: Add flags that tell it to avoid searching in vaults, and to ↵Vsevolod Kozlov2010-12-181-4/+10
| | | | | | | | check traversable features. This is hacky. At some point in the future, flood_find should be turned into an interator, which would let one do such checks right where one uses it in the code, instead of piling ugly flags into the class.
* Add support for vaults in the Abyss, save vault metadata in the level save.Darshan Shaligram2010-06-061-5/+0
| | | | | | Vault metadata that was previously discarded at level generation time is now saved in the level file instead. This can be quite costly (~30k per level) if the level has large vaults. The abyss can now use vaults as general scenery (tagged "abyss") or to place the rune ("abyss_rune"). abyss.des currently includes stub vaults for testing.
* Reduce dependency on travel.hMatthew Cline2009-11-291-0/+173
Removed inclusion of travel.h from most .h files to reduce the number of .cc files dependant on it. This involved moving the level_pos declaration to externs.h, moving the flood_find template to it's own header file, and moving two typedefs from travel.h to travel_defs.h because typedefs can't be forward declared (argh).