summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-06-03 14:23:15 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-06-03 14:42:57 +0200
commit6443c2a9130e7b26ae5a925c8a59a374fbf5d695 (patch)
tree7788ecbf01e07717bdaeaffa08d52bc40dadd69f /crawl-ref/source/stash.h
parent1a07a0d97ff2ab18ede22cf50393f3681c3db800 (diff)
downloadcrawl-ref-6443c2a9130e7b26ae5a925c8a59a374fbf5d695.tar.gz
crawl-ref-6443c2a9130e7b26ae5a925c8a59a374fbf5d695.zip
Waypoint search.
Searching for a single digit yields the content of the stash located at the waypoint. Searching for * returns the content of all the waypoints. Since waypoints are often used to mark player's stash, it is very useful to quickly check the content of a stash (or all of them).
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 03321cb54e..92ebb860db 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -292,6 +292,7 @@ public:
int _num_enabled_stashes() const;
void _update_corpses(int rot_time);
void _update_identification();
+ void _waypoint_search(int n, std::vector<stash_search_result> &results) const;
private:
typedef std::map<int, Stash> stashes_t;