message.cc File Reference

#include "AppHdr.h"
#include "message.h"
#include "cio.h"
#include "colour.h"
#include "delay.h"
#include "format.h"
#include "initfile.h"
#include "libutil.h"
#include "macro.h"
#include "menu.h"
#include "mon-stuff.h"
#include "notes.h"
#include "options.h"
#include "player.h"
#include "religion.h"
#include "showsymb.h"
#include "stash.h"
#include "state.h"
#include "stuff.h"
#include "areas.h"
#include "tags.h"
#include "tagstring.h"
#include "travel.h"
#include "hints.h"
#include "view.h"
#include "shout.h"
#include "viewgeom.h"
#include <sstream>

Include dependency graph for message.cc:


Classes

struct  message_item
class  circ_vec< T, SIZE >
class  message_window
class  message_store

Typedefs

typedef circ_vec< message_item,
NUM_STORED_MESSAGES > 
store_t

Enumerations

enum  prefix_type {
  P_NONE, P_TURN_START, P_TURN_END, P_NEW_CMD,
  P_NEW_TURN, P_FULL_MORE, P_OTHER_MORE
}

Functions

glyph prefix_glyph (prefix_type p)
void display_message_window ()
void clear_message_window ()
void scroll_message_window (int n)
bool any_messages ()
msg_colour_type msg_colour (int col)
int channel_to_colour (msg_channel_type channel, int param)
void mprf (msg_channel_type channel, int param, const char *format,...)
void mprf (msg_channel_type channel, const char *format,...)
void mprf (const char *format,...)
void msgwin_set_temporary (bool temp)
void msgwin_clear_temporary ()
void mpr (std::string text, msg_channel_type channel, int param, bool nojoin)
void msgwin_prompt (std::string prompt)
void msgwin_reply (std::string reply)
void msgwin_got_input ()
int msgwin_get_line (std::string prompt, char *buf, int len, input_history *mh, int(*keyproc)(int &c))
void msgwin_new_turn ()
void msgwin_new_cmd ()
unsigned int msgwin_lines ()
void mpr_comma_separated_list (const std::string prefix, const std::vector< std::string > list, const std::string &andc, const std::string &comma, const msg_channel_type channel, const int param)
void flush_prev_message ()
void mesclr (bool force)
void set_more_autoclear (bool on)
void more (bool user_forced)
void clear_message_store ()
std::string get_last_messages (int mcount)
void save_messages (writer &outf)
void load_messages (reader &inf)
void replay_messages (void)
void set_msg_dump_file (FILE *file)
void formatted_mpr (const formatted_string &fs, msg_channel_type channel, int param)

Variables

message_window msgwin
message_store messages

Typedef Documentation

typedef circ_vec<message_item, NUM_STORED_MESSAGES> store_t


Enumeration Type Documentation

Enumerator:
P_NONE 
P_TURN_START 
P_TURN_END 
P_NEW_CMD 
P_NEW_TURN 
P_FULL_MORE 
P_OTHER_MORE 


Function Documentation

bool any_messages (  ) 

Here is the call graph for this function:

int channel_to_colour ( msg_channel_type  channel,
int  param 
)

void clear_message_store (  ) 

Here is the call graph for this function:

void clear_message_window (  ) 

void display_message_window (  ) 

Here is the call graph for this function:

void flush_prev_message (  ) 

Here is the call graph for this function:

void formatted_mpr ( const formatted_string fs,
msg_channel_type  channel,
int  param 
)

Here is the call graph for this function:

std::string get_last_messages ( int  mcount  ) 

Here is the call graph for this function:

void load_messages ( reader inf  ) 

Here is the call graph for this function:

void mesclr ( bool  force  ) 

Here is the call graph for this function:

void more ( bool  user_forced  ) 

Here is the call graph for this function:

void mpr ( std::string  text,
msg_channel_type  channel,
int  param,
bool  nojoin 
)

Here is the call graph for this function:

void mpr_comma_separated_list ( const std::string  prefix,
const std::vector< std::string list,
const std::string andc,
const std::string comma,
const msg_channel_type  channel,
const int  param 
)

Here is the call graph for this function:

void mprf ( const char *  format,
  ... 
)

void mprf ( msg_channel_type  channel,
const char *  format,
  ... 
)

void mprf ( msg_channel_type  channel,
int  param,
const char *  format,
  ... 
)

msg_colour_type msg_colour ( int  col  ) 

void msgwin_clear_temporary (  ) 

Here is the call graph for this function:

int msgwin_get_line ( std::string  prompt,
char *  buf,
int  len,
input_history mh,
int(*)(int &c)  keyproc 
)

Here is the call graph for this function:

void msgwin_got_input (  ) 

Here is the call graph for this function:

unsigned int msgwin_lines (  ) 

Here is the call graph for this function:

void msgwin_new_cmd (  ) 

Here is the call graph for this function:

void msgwin_new_turn (  ) 

Here is the call graph for this function:

void msgwin_prompt ( std::string  prompt  ) 

Here is the call graph for this function:

void msgwin_reply ( std::string  reply  ) 

Here is the call graph for this function:

void msgwin_set_temporary ( bool  temp  ) 

Here is the call graph for this function:

glyph prefix_glyph ( prefix_type  p  ) 

Here is the call graph for this function:

void replay_messages ( void   ) 

Here is the call graph for this function:

void save_messages ( writer outf  ) 

Here is the call graph for this function:

void scroll_message_window ( int  n  ) 

Here is the call graph for this function:

void set_more_autoclear ( bool  on  ) 

void set_msg_dump_file ( FILE *  file  ) 


Variable Documentation


Generated on Thu Jan 13 13:10:17 2011 by  doxygen 1.5.6