/* * File: message.cc * Summary: Functions used to print messages. * Written by: Linley Henzell * * Modified for Crawl Reference by $Author$ on $Date$ * * Change History (most recent first): * * <2> 5/08/99 JDJ mpr takes a const char* instead of a char array. * <1> -/--/-- LRH Created */ #ifndef MESSAGE_H #define MESSAGE_H #include #include "externs.h" struct message_item { int channel; // message channel int param; // param for channel (god, enchantment) std::string text; // text of message }; // last updated 12may2000 {dlb} /* *********************************************************************** * called from: ability - acr - command - direct - effects - item_use - * misc - player - spell - spl-book - spells1 - spells2 - * spells3 * *********************************************************************** */ void mesclr( bool force = false ); // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr - bang - beam - decks - fight - files - it_use3 - * item_use - items - message - misc - ouch - player - * religion - spell - spells - spells2 - spells3 * *********************************************************************** */ void more(void); // last updated 12may2000 {dlb} /* *********************************************************************** * called from: ability - acr - bang - beam - chardump - command - debug - * decks - direct - effects - fight - files - food - it_use2 - * it_use3 - item_use - items - macro - misc - monplace - * monstuff - mstuff2 - mutation - ouch - overmap - player - * religion - shopping - skills - spell - spl-book - spells - * spells1 - spells2 - spells3 - spells4 - stuff - transfor - * view * *********************************************************************** */ void mpr(const char *inf, 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, ... ); class no_messages { public: no_messages(); ~no_messages(); private: bool msuppressed; }; // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr * *********************************************************************** */ void replay_messages(void); // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr - it_use3 - items - religion * *********************************************************************** */ void set_colour(char set_message_colour); // last updated 18mar2001 {dlb} /* *********************************************************************** * called from: acr * *********************************************************************** */ bool any_messages(void); // last updated 13oct2003 {dlb} /* *********************************************************************** * called from: chardump * *********************************************************************** */ std::string get_last_messages(int mcount); #endif