diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 03:19:47 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 03:19:47 +0000 |
commit | 3e7c799cf444d6891139555291d0bb5d730d104e (patch) | |
tree | 538fa16ee613151cec579cd1c2679142839cf366 /crawl-ref/source/message.h | |
parent | 66e0b2147bb59435490014ce5df5a97f6170c321 (diff) | |
download | crawl-ref-3e7c799cf444d6891139555291d0bb5d730d104e.tar.gz crawl-ref-3e7c799cf444d6891139555291d0bb5d730d104e.zip |
Added option msg_condense_repeats (defaults to true) which causes message
history to condense repeated messages into a single line, so that (for
example) if you hear a Zot trap go off five times in a row while resting,
message history will show:
You hear a distant "Zot!" (x5)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5575 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r-- | crawl-ref/source/message.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h index 210e833010..9ce1c31ac0 100644 --- a/crawl-ref/source/message.h +++ b/crawl-ref/source/message.h @@ -21,10 +21,17 @@ #include "enum.h" #include "mpr.h" -struct message_item { +class message_item { +public: msg_channel_type channel; // message channel int param; // param for channel (god, enchantment) std::string text; // text of message + int repeats; + + message_item() : channel(NUM_MESSAGE_CHANNELS), param(0), text(""), + repeats(0) + { + } }; |