summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 20:27:50 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 20:27:50 +0000
commit17125f250661e8430e320f4c05d74094235f0cf3 (patch)
tree9f681260f2fed49c56911637fd13a800a5e993e0 /crawl-ref/source/stash.h
parent5a1d2984131beed046555602cee60045ac665212 (diff)
downloadcrawl-ref-17125f250661e8430e320f4c05d74094235f0cf3.tar.gz
crawl-ref-17125f250661e8430e320f4c05d74094235f0cf3.zip
Fixed 2481704: Travel stopping for spellcasting monsters without LOS
spells behind glass. Fixed 2174517: V giving information about unknown items in stashes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8128 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 0c72c07532..4b3811ec05 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -53,6 +53,7 @@ public:
std::string description() const;
std::string feature_description() const;
+ std::vector<item_def> get_items() const;
bool show_menu(const std::string &place, bool can_travel) const;
@@ -100,7 +101,7 @@ private:
dungeon_feature_type feat;
trap_type trap;
- std::vector<item_def> items;
+ std::vector<item_def> items;
/*
* If true (the default), the stash-tracker is a lot more likely to consider
@@ -227,11 +228,13 @@ public:
// 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 needs_visit(const coord_def& c) const {
+ bool needs_visit(const coord_def& c) const
+ {
return needs_visit(c.x, c.y);
}
bool shop_needs_visit(int x, int y) const;
- bool shop_needs_visit(const coord_def& c) const {
+ bool shop_needs_visit(const coord_def& c) const
+ {
return shop_needs_visit(c.x, c.y);
}
@@ -357,6 +360,7 @@ extern StashTracker StashTrack;
bool is_stash(int x, int y);
inline bool is_stash( const coord_def& p ) { return is_stash(p.x, p.y); }
void describe_stash(int x, int y);
+std::vector<item_def> item_list_in_stash( coord_def pos );
std::string userdef_annotate_item(const char *s, const item_def *item,
bool exclusive = false);