Macros | Enumerations | Functions
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.


#define MON_MSG(x, t, o, s)   MON_MSG_##x,


enum  mon_messages
 Monster message constants. More...


void message_pain (struct monster *m, int dam)
 Adds to the message queue a message describing a monster's reaction to damage. More...
bool add_monster_message (struct monster *m, int msg_code, bool delay)
 Stack a codified message for the given monster race. More...
void show_monster_messages (void)
 Show and then cler all stacked monster messages. More...

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 MON_MSG (   x,
)    MON_MSG_##x,

Enumeration Type Documentation

◆ mon_messages

Monster message constants.

Function Documentation

◆ add_monster_message()

bool add_monster_message ( struct monster mon,
int  msg_code,
bool  delay 

◆ message_pain()

void message_pain ( struct monster m,
int  dam 

◆ show_monster_messages()

void show_monster_messages ( void  )

Show and then cler all stacked monster messages.

References monster_race_message::delay, i, mon_msg, msg, show_message(), size_mon_hist, and size_mon_msg.

Referenced by notice_stuff().