summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-17 17:38:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-17 17:38:36 +0000
commit23c5277317de657f8376d1b5f33144948a811a42 (patch)
treede39ce9e4c369e1f42ddf291695d25b1c5c44c55 /crawl-ref/source/stash.h
parenta9a5ce7479fc6358f96aadad9654d35f2a573782 (diff)
downloadcrawl-ref-23c5277317de657f8376d1b5f33144948a811a42.tar.gz
crawl-ref-23c5277317de657f8376d1b5f33144948a811a42.zip
[1738010] Stash-tracker now also tracks traps and other dungeon features.
Changed env.grid to dungeon_feature_type. (The special-level builder still stores map characters directly into env.grid and then translates them to features.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1592 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index a6bc8746da..fd6ac6ddba 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -36,6 +36,7 @@ class Stash
public:
Stash(int xp = -1, int yp = -1);
+ static bool is_boring_feature(dungeon_feature_type feat);
static void filter(object_class_type base_type, unsigned char sub_type);
static void filter(const std::string &filt);
@@ -45,6 +46,7 @@ public:
void load(FILE*);
std::string description() const;
+ std::string feature_description() const;
bool show_menu(const std::string &place, bool can_travel) const;
@@ -67,7 +69,7 @@ public:
bool empty() const
{
- return items.empty() && enabled;
+ return enabled && items.empty() && feat == DNGN_FLOOR;
}
bool isAt(int xp, int yp) const { return x == xp && y == yp; }
@@ -85,6 +87,9 @@ private:
bool verified; // Is this correct to the best of our knowledge?
unsigned char x, y;
int abspos;
+ dungeon_feature_type feat;
+ trap_type trap;
+
std::vector<item_def> items;
/*