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-03-20 12:12:03 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-20 12:12:03 +0000
commitbc1869c1a3334676d5cc99df90f7f9b24426274d (patch)
treede15184d6e9328c8d2b50f6c201af5fa306db2eb /crawl-ref/source/message.h
parent73efec90ba10a76ae5d4663461781f840b110d9d (diff)
downloadcrawl-ref-bc1869c1a3334676d5cc99df90f7f9b24426274d.tar.gz
crawl-ref-bc1869c1a3334676d5cc99df90f7f9b24426274d.zip
Added a funtion for formatted message history, and, while I was at it,
moved some overlapping parts of base_mpr and formatted_mpr into separate functions. This makes them more readable and avoids code duplication. I'm uncertain as to whether translating every string in replay_messages into a formatted string (just in case) would be overkill - so for now that only happens for messages of MSGCH_TUTORIAL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1071 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r--crawl-ref/source/message.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h
index ec6e4258af..0d82a195d3 100644
--- a/crawl-ref/source/message.h
+++ b/crawl-ref/source/message.h
@@ -59,7 +59,10 @@ class formatted_string;
void formatted_mpr(const formatted_string& fs, int channel = MSGCH_PLAIN,
int param = 0);
-
+
+void formatted_message_history(const std::string st,
+ int channel = MSGCH_PLAIN, int param = 0);
+
// 4.1-style mpr, currently named mprf for minimal disruption.
void mprf( int channel, const char *format, ... );
void mprf( const char *format, ... );