summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 12:40:44 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 12:40:44 +0000
commit0d2fd7a12bdc1fba93f2ee1cb5b35abad877ade5 (patch)
treedd7bb323a3ceb796a00450627352949e9ff7a5f6 /crawl-ref/source/message.h
parentb367d7d62fb29d7938f260999c634c5f11fa4cc8 (diff)
downloadcrawl-ref-0d2fd7a12bdc1fba93f2ee1cb5b35abad877ade5.tar.gz
crawl-ref-0d2fd7a12bdc1fba93f2ee1cb5b35abad877ade5.zip
Implemented patch 1773718 (improved wizard commands) and
patch 1783003 (ímproved menu sorting), both by zelgadis. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2041 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r--crawl-ref/source/message.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h
index c44a7fa3fe..92ad895d21 100644
--- a/crawl-ref/source/message.h
+++ b/crawl-ref/source/message.h
@@ -65,6 +65,14 @@ void formatted_mpr(const formatted_string& fs,
void formatted_message_history(const std::string &st,
msg_channel_type channel = MSGCH_PLAIN,
int param = 0);
+
+// mpr() an arbitrarily long list of strings
+void mpr_comma_separated_list(const std::string prefix,
+ const std::vector<std::string> list,
+ const std::string &andc = " and ",
+ const std::string &comma = ", ",
+ const msg_channel_type channel = MSGCH_PLAIN,
+ const int param = 0);
// 4.1-style mpr, currently named mprf for minimal disruption.
void mprf( msg_channel_type channel, int param, const char *format, ... );