Angband
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
mon-msg.h File Reference

Structures and functions for monster messages. More...

#include "monster.h"
#include "list-mon-message.h"

Go to the source code of this file.

Data Structures

struct  monster_race_message
 Structures. More...
struct  monster_message_history

Macros

#define MON_MSG(x, s)   MON_MSG_##x,
#define MAX_STORED_MON_MSG   200
 Maxinum number of stacked monster messages.
#define MAX_STORED_MON_CODES   400

Typedefs

typedef struct monster_race_message monster_race_message
 Structures.
typedef struct
monster_message_history 
monster_message_history

Enumerations

enum  mon_messages
 Constants. More...
enum  { MON_DELAY_TAG_DEFAULT = 0, MON_DELAY_TAG_DEATH }
enum  mon_msg_flags { MON_MSG_FLAG_HIDDEN = 0x01, MON_MSG_FLAG_OFFSCREEN = 0x02, MON_MSG_FLAG_INVISIBLE = 0x04 }

Functions

void message_pain (struct monster *m, int dam)
 Functions.
bool add_monster_message (const char *mon_name, struct monster *m, int msg_code, bool delay)
 Stack a codified message for the given monster race.
void flush_all_monster_messages (void)
 Print and delete all stacked monster messages.

Variables

monster_race_messagemon_msg
 Variables.
monster_message_historymon_message_hist

Detailed Description

Structures and functions for monster messages.

Copyright (c) 1997-2007 Ben Harrison, James E. Wilson, Robert A. Koeneke

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Macro Definition Documentation

#define MAX_STORED_MON_CODES   400

Referenced by add_monster_message(), and monmsg_init().

#define MAX_STORED_MON_MSG   200

Maxinum number of stacked monster messages.

Referenced by add_monster_message(), and monmsg_init().

#define MON_MSG (   x,
 
)    MON_MSG_##x,

Typedef Documentation

Structures.

A stacked monster message entry

Enumeration Type Documentation

anonymous enum
Enumerator:
MON_DELAY_TAG_DEFAULT 
MON_DELAY_TAG_DEATH 

Constants.

Monster message constants

Enumerator:
MON_MSG_FLAG_HIDDEN 
MON_MSG_FLAG_OFFSCREEN 
MON_MSG_FLAG_INVISIBLE 

Function Documentation

bool add_monster_message ( const char *  mon_name,
struct monster m_ptr,
int  msg_code,
bool  delay 
)
void flush_all_monster_messages ( void  )

Print and delete all stacked monster messages.

References FALSE, flush_monster_messages(), MON_DELAY_TAG_DEATH, MON_DELAY_TAG_DEFAULT, size_mon_hist, size_mon_msg, and TRUE.

Referenced by notice_stuff().

void message_pain ( struct monster m_ptr,
int  dam 
)

Variable Documentation

monster_message_history* mon_message_hist

Variables.