summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.h
Commit message (Collapse)AuthorAgeFilesLines
* Use std namespace.Raphael Langella2012-08-261-7/+7
| | | | | | | | | | | | | 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.
* Let ^F and item memory work in Labs and the Abyss.Adam Borowski2012-04-241-1/+0
| | | | | | It's a pain in the butt to have to return to every item you just ran past (LOS in the Abyss tends to be spotty). This commit makes the memory last until the map cell rots away.
* Assert out if you try to enter a level that's already on the stack.Adam Borowski2012-04-081-0/+2
| | | | No current disconnected level supports multiple copies.
* Use the level stack to save return target for portal vaults/Abyss/Pan/Zigs/Lab.Adam Borowski2012-04-071-2/+0
| | | | | | | | | Unlike the initial implementation that was talked about, this one nearly completely ignores what stair is used to do X, meaning you can exit a branch by any stair that goes up, etc. Also, this commit earns the prize of the most rebased and edited one. And it ended up a tiny fraction of its initial size, with far simpler code to boot.
* Cache absdepth0, now that it has to be calculated.Adam Borowski2012-01-031-2/+1
| | | | | The cached value intentionally is stored in env.absdepth0 rather than you.absdepth0 to catch attempts to modify it.
* Use branch depth rather than absolute depth as the authoritative one.Adam Borowski2012-01-031-11/+5
|
* Don't explicitely pass absdepth:branch in the dungeon builder.Adam Borowski2012-01-031-0/+2
| | | | | There's no support for producing maps for a level you're not on, around half of functions assumed this.
* Purge away attempts to retain save compat for level_type changes.Adam Borowski2011-11-041-4/+0
|
* Get rid of level_type, unify BRANCH_*, LEVEL_* and portal vaults.Adam Borowski2011-11-041-8/+10
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+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.
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-4/+4
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* FR 1837856: note vaults generated in dumpMatthew Cline2009-10-261-0/+2
| | | | | | | | | | Include new dump section "vaults", which for game-end dumps (or any wizard-mode dumps) will include a list (by place) of all the vaults generated in the game. The savefile now includes a player-associated CrawlHashTable (you.props), which can be used for storing player information which doesn't need to be accessed efficiently.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-4/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, was using UNIQ_LOST_IN_ABYSS wrongly.zelgadis2007-10-111-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2420 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed regex escapes for "." stash search.dshaligram2007-09-301-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2266 c06c8d41-db1a-0410-9941-cceddc491573
* [1800818] Fixed broken follower tagging for bazaars.dshaligram2007-09-281-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2247 c06c8d41-db1a-0410-9941-cceddc491573
* Didn't have svn autoprops set properly for the new files that I addedzelgadis2007-09-161-1/+1
| | | | | | | for my code refactoring. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2103 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-0/+53
crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573