From 17125f250661e8430e320f4c05d74094235f0cf3 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 2 Jan 2009 20:27:50 +0000 Subject: 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 --- crawl-ref/source/stash.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/stash.h') 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 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 items; + std::vector 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_list_in_stash( coord_def pos ); std::string userdef_annotate_item(const char *s, const item_def *item, bool exclusive = false); -- cgit v1.2.3-54-g00ecf