diff options
author | kittel <tkpub_ahnfyc@doki.dk> | 2011-10-06 15:20:31 +0200 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2011-10-27 13:59:47 +0100 |
commit | eaded9710d0412c5b76812cf7bd0d8e172a7f0b8 (patch) | |
tree | 312c81e085877b92690f935a4ef731db7b9cf9e4 /crawl-ref/source/stash.h | |
parent | f7e7b2153a923c714ab700ada67eb886ee47ad01 (diff) | |
download | crawl-ref-eaded9710d0412c5b76812cf7bd0d8e172a7f0b8.tar.gz crawl-ref-eaded9710d0412c5b76812cf7bd0d8e172a7f0b8.zip |
Toggle between locations and items when searching
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r-- | crawl-ref/source/stash.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h index 44684cac17..af95110bed 100644 --- a/crawl-ref/source/stash.h +++ b/crawl-ref/source/stash.h @@ -148,6 +148,10 @@ public: unsigned price; }; + // Attempts to guess if the item came from the shop, and if so returns the + // corresponding shop_item_name: + std::string get_shop_item_name(const item_def&) const; + private: int x, y; std::string name; @@ -364,7 +368,8 @@ private: void get_matching_stashes(const base_pattern &search, std::vector<stash_search_result> &results) const; bool display_search_results(std::vector<stash_search_result> &results, - const char* sort_style); + bool& sort_by_dist, + bool& show_as_stacks); std::string stash_search_prompt(); private: |