Angband
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.

Macros

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

Enumerations

enum  mon_messages
 Monster message constants. More...
 

Functions

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,
  t,
  o,
 
)    MON_MSG_##x,

Enumeration Type Documentation

Monster message constants.

Function Documentation

bool add_monster_message ( struct monster mon,
int  msg_code,
bool  delay 
)
void message_pain ( struct monster m,
int  dam 
)

Adds to the message queue a message describing a monster's reaction to damage.

References add_monster_message(), monster::hp, and int.

Referenced by project_m_monster_attack(), project_m_player_attack(), and ranged_helper().

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().