summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-01 15:20:32 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-01 15:20:32 +0000
commit5c65cedddfd6f3d893c7eaec03f3c8519e266d45 (patch)
treea329dac4fc6be65f3ef947fc22c5af4f3e1e8284 /crawl-ref/source/stash.h
parent7cc367c09ed4fa3239ef8cb300cc1ef21fe129ce (diff)
downloadcrawl-ref-5c65cedddfd6f3d893c7eaec03f3c8519e266d45.tar.gz
crawl-ref-5c65cedddfd6f3d893c7eaec03f3c8519e266d45.zip
[1597293] Preliminary greedy-explore, parked on Ctrl-I. We can (re)move it if necessary.
Stash-tracking is no longer #ifdef conditionalised. I'm not aware of anybody who compiles without it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@538 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 727fb656e4..9727102067 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -10,8 +10,6 @@
#include "shopping.h"
#include <string>
-#ifdef STASH_TRACKING
-
#include <iostream>
#include <map>
#include <vector>
@@ -48,6 +46,14 @@ public:
bool show_menu(const std::string &place, bool can_travel) const;
+ // Returns true if this Stash contains items that are eligible for
+ // autopickup.
+ bool pickup_eligible() const;
+
+ // Returns true if this Stash is unverified (a visit by the character will
+ // verify the stash).
+ bool unverified() const;
+
bool matches_search(const std::string &prefix,
const base_pattern &search,
stash_search_result &res)
@@ -197,6 +203,7 @@ public:
LevelStashes();
Stash *find_stash(int x = -1, int y = -1);
+ const Stash *find_stash(int x = -1, int y = -1) const;
ShopInfo &get_shop(int x, int y);
const ShopInfo *find_shop(int x, int y) const;
@@ -207,6 +214,11 @@ public:
// location if no parameters are supplied.
bool update_stash(int x = -1, int y = -1);
+ // Returns true if the square at (x,y) contains potentially interesting
+ // swag that merits a personal visit (for EXPLORE_GREEDY).
+ bool needs_visit(int x, int y) const;
+ bool shop_needs_visit(int x, int y) const;
+
// Add stash at (x,y), or player's current location if no parameters are
// supplied
void add_stash(int x = -1, int y = -1);
@@ -315,8 +327,6 @@ extern StashTracker stashes;
bool is_stash(int x, int y);
void describe_stash(int x, int y);
-#endif // STASH_TRACKING
-
std::string userdef_annotate_item(const char *s, const item_def *item,
bool exclusive = false);