summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h
index 014932cd77..86bdc4f246 100644
--- a/crawl-ref/source/menu.h
+++ b/crawl-ref/source/menu.h
@@ -46,6 +46,7 @@ struct menu_letter
};
struct item_def;
+class Menu;
int menu_colour(const std::string &itemtext,
const std::string &prefix = "",
@@ -218,6 +219,9 @@ public:
size_t item_count() const { return items.size(); }
+ // Get entry index, skipping quantity 0 entries. Returns -1 if not found.
+ int get_entry_index( const MenuEntry *e ) const;
+
public:
typedef std::string (*selitem_tfn)( const std::vector<MenuEntry*> *sel );
typedef void (*drawitem_tfn)(int index, const MenuEntry *me);