diff options
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) + { + } }; |