summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorbones <x@y.z>2014-04-30 06:37:21 +0900
committerShmuale Mark <shm.mark@gmail.com>2014-04-29 22:40:07 -0400
commit6ead0e2426238565ba44d078e00d6e58105eae8c (patch)
tree8d0158aec1a3f11e8f411b050e893e8aba8a7691 /crawl-ref/source/invent.h
parent7eda9e3a0c5f67d8577ee15a79d0bcefcac70b5a (diff)
downloadcrawl-ref-6ead0e2426238565ba44d078e00d6e58105eae8c.tar.gz
crawl-ref-6ead0e2426238565ba44d078e00d6e58105eae8c.zip
Add the ability to sort by dbname to sort_menus.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 4eb7302f5d..464aba28ae 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -77,6 +77,7 @@ private:
mutable string basename;
mutable string qualname;
+ mutable string dbname;
protected:
static bool show_cursor;
@@ -94,6 +95,7 @@ public:
const string &get_basename() const;
const string &get_qualname() const;
const string &get_fullname() const;
+ const string &get_dbname() const;
bool is_item_cursed() const;
bool is_item_glowing() const;
bool is_item_ego() const;