Macros | Functions
mon-desc.h File Reference

Monster description. More...

#include "monster.h"

Go to the source code of this file.


#define MDESC_DEFAULT   0x00 /* "it" or "the kobold" */
 Bit flags for the "monster_desc" function.
#define MDESC_OBJE   0x01 /* Objective (or Reflexive) */
#define MDESC_POSS   0x02 /* Possessive (or Reflexive) */
#define MDESC_IND_HID   0x04 /* Indefinites for hidden monsters */
#define MDESC_IND_VIS   0x08 /* Indefinites for visible monsters */
#define MDESC_PRO_HID   0x10 /* Pronominalize hidden monsters */
#define MDESC_PRO_VIS   0x20 /* Pronominalize visible monsters */
#define MDESC_HIDE   0x40 /* Assume the monster is hidden */
#define MDESC_SHOW   0x80 /* Assume the monster is visible */
#define MDESC_CAPITAL   0x100 /* Capitalise */


void plural_aux (char *name, size_t max)
 Perform simple English pluralization on a monster name.
void get_mon_name (char *output_name, size_t max, const monster_race *r_ptr, int num)
 Helper function for display monlist.
void monster_desc (char *desc, size_t max, const monster_type *m_ptr, int mode)

Detailed Description

Monster description.

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 MDESC_CAPITAL   0x100 /* Capitalise */
#define MDESC_DEFAULT   0x00 /* "it" or "the kobold" */

Bit flags for the "monster_desc" function.

Referenced by do_cmd_walk_test(), message_pain(), mon_take_hit(), project_m(), py_attack(), and ranged_helper().

#define MDESC_HIDE   0x40 /* Assume the monster is hidden */

Referenced by monster_desc().

#define MDESC_IND_HID   0x04 /* Indefinites for hidden monsters */
#define MDESC_IND_VIS   0x08 /* Indefinites for visible monsters */
#define MDESC_OBJE   0x01 /* Objective (or Reflexive) */
#define MDESC_POSS   0x02 /* Possessive (or Reflexive) */
#define MDESC_PRO_HID   0x10 /* Pronominalize hidden monsters */

Referenced by monster_desc(), and py_attack_real().

#define MDESC_PRO_VIS   0x20 /* Pronominalize visible monsters */
#define MDESC_SHOW   0x80 /* Assume the monster is visible */

Referenced by make_attack_normal(), and monster_desc().


Function Documentation

void get_mon_name ( char *  output_name,
size_t  max,
const monster_race r_ptr,
int  num 

Helper function for display monlist.

Prints the number of creatures, followed by either a singular or plural version of the race name as appropriate.

References monster_race::flags, format(), my_strcat(), my_strcpy(), monster_race::name, monster_race::plural, plural_aux(), race_name(), and rf_has.

Referenced by monster_list_format_section().

void monster_desc ( char *  desc,
size_t  max,
const monster_type m_ptr,
int  mode 
void plural_aux ( char *  name,
size_t  max 

Perform simple English pluralization on a monster name.

References my_strcat().

Referenced by flush_monster_messages(), and get_mon_name().