Angband
|
Structures and functions for monster messages. More...
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... | |
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.
#define MON_MSG | ( | x, | |
t, | |||
o, | |||
s | |||
) | MON_MSG_##x, |
enum mon_messages |
Monster message constants.
Stack a codified message for the given monster race.
Return true on success.
References monster_race_message::count, monster_race_message::delay, monster_race_message::flags, MAX_STORED_MON_MSG, message_flags(), mon_msg, monster_race_message::msg_code, player_upkeep::notice, PN_MON_MESSAGE, monster_race_message::race, monster::race, redundant_monster_message(), size_mon_msg, stack_message(), store_monster(), player::upkeep, and what_delay().
Referenced by effect_handler_CURSE(), effect_handler_DAMAGE(), effect_handler_JUMP_AND_BITE(), effect_handler_TAP_UNLIFE(), effect_handler_TELEPORT_LEVEL(), message_pain(), mon_set_timed(), mon_take_nonplayer_hit(), monster_take_terrain_damage(), project_m_apply_side_effects(), project_m_monster_attack(), project_m_player_attack(), py_attack(), and ranged_helper().
Adds to the message queue a message describing a monster's reaction to damage.
References add_monster_message(), monster::hp, int, and monster_race_message::msg_code.
Referenced by effect_handler_CURSE(), effect_handler_JUMP_AND_BITE(), effect_handler_TAP_UNLIFE(), mon_take_nonplayer_hit(), project_m_monster_attack(), project_m_player_attack(), and ranged_helper().
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().