diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-20 23:18:02 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-20 23:18:02 -0800 |
commit | 4da6707399c53c7989d0e9e7a421b153dce67458 (patch) | |
tree | 4a41bccd9e05fc20d60763560679499ca5f79fea /crawl-ref/source/menu.h | |
parent | 37c7bf6bdee14c94b5340ce5adfd166d580705d1 (diff) | |
download | crawl-ref-4da6707399c53c7989d0e9e7a421b153dce67458.tar.gz crawl-ref-4da6707399c53c7989d0e9e7a421b153dce67458.zip |
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.
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<tile_def>& tileset) const; |