summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-07-11 15:37:47 +0000
committerRaphael Langella <raphael.langella@gmail.com>2011-07-11 21:34:47 +0200
commitfdfc2aad04f741a5fc05778aecc2484cb2158411 (patch)
treea3c0a6ae584988679753c632f39c484238dca18a /crawl-ref/source/directn.h
parent6a3a087368c481ab558f283c63aa7908fcc5c2e5 (diff)
downloadcrawl-ref-fdfc2aad04f741a5fc05778aecc2484cb2158411.tar.gz
crawl-ref-fdfc2aad04f741a5fc05778aecc2484cb2158411.zip
Print mindless in monster status only when using the healing ability.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index 6405d671f4..d5ee4b417d 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -40,12 +40,15 @@ public:
// Update the prompt shown at top.
virtual void update_top_prompt(std::string* p_top_prompt) {}
+ // Add relevant descriptions to the target status.
+ virtual std::vector<std::string> get_monster_desc(const monster_info& mi);
private:
std::string prompt;
public:
bool just_looking;
bool compass;
+ desc_filter get_desc_func; // Function to add relevant descriptions
};
// output from direction() function:
@@ -82,6 +85,7 @@ struct direction_chooser_args
targeting_behaviour *behaviour;
bool cancel_at_self;
bool show_floor_desc;
+ desc_filter get_desc_func;
direction_chooser_args() :
hitfunc(NULL),
@@ -95,7 +99,8 @@ struct direction_chooser_args
target_prefix(NULL),
behaviour(NULL),
cancel_at_self(false),
- show_floor_desc(false) {}
+ show_floor_desc(false),
+ get_desc_func(NULL) {}
};
class direction_chooser