From 4da6707399c53c7989d0e9e7a421b153dce67458 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Fri, 20 Nov 2009 23:18:02 -0800 Subject: Init FeatureMenuEntry from dungeon_feature_type Add a second FeatureMenuEntry constructor, which accepts the dungeon_feature_type to use instead of the positon of the feature in question. --- crawl-ref/source/menu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/menu.h') diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 9092943810..1dea67758b 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -183,9 +183,12 @@ public: class FeatureMenuEntry : public MenuEntry { public: - coord_def pos; + coord_def pos; + dungeon_feature_type feat; FeatureMenuEntry(const std::string &str, const coord_def p, int hotkey); + FeatureMenuEntry(const std::string &str, const dungeon_feature_type f, + int hotkey); #ifdef USE_TILE virtual bool get_tiles(std::vector& tileset) const; -- cgit v1.2.3-54-g00ecf