Functions | Variables

do_name.c File Reference

#include "hack.h"
Include dependency graph for do_name.c:

Functions

STATIC_DCL void FDECL (do_oname,(struct obj *))
static void FDECL (getpos_help,(BOOLEAN_P, const char *))
static void getpos_help (boolean force, const char *goal)
int getpos (coord *cc, boolean force, const char *goal)
struct monstchristen_monst (struct monst *mtmp, const char *name)
int do_mname ()
STATIC_OVL void do_oname (struct obj *obj)
struct objrealloc_obj (struct obj *obj, int oextra_size, genericptr_t oextra_src, int oname_size, const char *name)
struct objoname (struct obj *obj, const char *name)
int ddocall ()
void docall (struct obj *obj)
const char * rndghostname ()
char * x_monnam (struct monst *mtmp, int article, const char *adjective, int suppress, boolean called)
char * l_monnam (struct monst *mtmp)
char * mon_nam (struct monst *mtmp)
char * noit_mon_nam (struct monst *mtmp)
char * Monnam (struct monst *mtmp)
char * noit_Monnam (struct monst *mtmp)
char * m_monnam (struct monst *mtmp)
char * y_monnam (struct monst *mtmp)
char * Adjmonnam (struct monst *mtmp, const char *adj)
char * a_monnam (struct monst *mtmp)
char * Amonnam (struct monst *mtmp)
char * distant_monnam (struct monst *mon, int article, char *outbuf)
const char * rndmonnam ()
const char * hcolor (char *colorpref) const
const char * rndcolor ()
char * coyotename (struct monst *mtmp, char *buf)

Variables

const char what_is_an_unknown_object []
static NEARDATA const char callable []
static const char *const ghostnames []
static const char *const bogusmons []
static NEARDATA const char *const hcolors []
static const char *const coynames []

Function Documentation

char* a_monnam ( struct monst mtmp )
char* Adjmonnam ( struct monst mtmp,
const char *  adj 
)

References ARTICLE_THE, bp, FALSE, highc(), SUPPRESS_SADDLE, and x_monnam().

Referenced by hitmu(), passive(), revive_corpse(), and steal().

Here is the call graph for this function:

Here is the caller graph for this function:

char* Amonnam ( struct monst mtmp )

References a_monnam(), bp, and highc().

Referenced by demon_talk(), do_earthquake(), dochug(), dokick(), dryup(), hitmu(), revive_corpse(), spoteffects(), summon_minion(), unturn_dead(), and watch_on_duty().

Here is the call graph for this function:

Here is the caller graph for this function:

struct monst* christen_monst ( struct monst mtmp,
const char *  name 
) [read]

References monst::mextra, monst::mnamelth, NAME, newmonst, PL_PSIZ, replmon(), and Strcpy.

Referenced by animate_statue(), clone_mon(), cloneu(), create_monster(), do_mname(), make_familiar(), makedog(), makemon(), mk_mplayer(), observe_quantum_cat(), revive(), and savebones().

Here is the call graph for this function:

Here is the caller graph for this function:

char* coyotename ( struct monst mtmp,
char *  buf 
)

References ARTICLE_NONE, rn2(), SIZE, Sprintf, TRUE, and x_monnam().

Referenced by lookat().

Here is the call graph for this function:

Here is the caller graph for this function:

int ddocall (  )

References ALL_CLASSES, do_oname(), docall(), getobj(), REDO, xname(), and ynq.

Here is the call graph for this function:

char* distant_monnam ( struct monst mon,
int  article,
char *  outbuf 
)

References ARTICLE_THE, distu, Hallucination, Is_astralevel, mons, PM_HIGH_PRIEST, Strcat, Strcpy, TRUE, u, you::uz, and x_monnam().

Referenced by do_mname(), and lookat().

Here is the call graph for this function:

Here is the caller graph for this function:

int do_mname (  )
STATIC_OVL void do_oname ( struct obj obj )

References artifact_name(), body_part(), BUFSZ, display_nhwindow, exist_artifact(), FALSE, getlin, HAND, highc(), is_plural, lowc(), mungspaces(), oname(), pline(), QBUFSZ, restrict_name(), rn2(), safe_qbuf(), simple_typename(), Sprintf, Strcpy, WIN_MESSAGE, and xname().

Referenced by ddocall().

Here is the call graph for this function:

Here is the caller graph for this function:

void docall ( struct obj obj )
static void FDECL ( getpos_help  ,
(BOOLEAN_P, const char *)   
) [static]
STATIC_DCL void FDECL ( do_oname  ,
(struct obj *)   
)
int getpos ( coord cc,
boolean  force,
const char *  goal 
)
static void getpos_help ( boolean  force,
const char *  goal 
) [static]

References BUFSZ, create_nhwindow, destroy_nhwindow, display_nhwindow, iflags, NHW_MENU, instance_flags::num_pad, putstr, Sprintf, TRUE, and what_is_an_unknown_object.

Referenced by getpos().

Here is the caller graph for this function:

const char* hcolor ( char *  colorpref ) const
char* l_monnam ( struct monst mtmp )

References ARTICLE_NONE, SUPPRESS_SADDLE, TRUE, and x_monnam().

Referenced by attack_checks(), dogaze(), and use_leash().

Here is the call graph for this function:

Here is the caller graph for this function:

char* m_monnam ( struct monst mtmp )

References ARTICLE_NONE, EXACT_NAME, FALSE, and x_monnam().

Referenced by domove(), done_in_by(), fig_transform(), hatch_egg(), mattackm(), mattacku(), and monkilled().

Here is the call graph for this function:

Here is the caller graph for this function:

char* mon_nam ( struct monst mtmp )

References ARTICLE_THE, FALSE, SUPPRESS_SADDLE, and x_monnam().

Referenced by artifact_hit(), at_your_feet(), attack_checks(), bhitm(), bribe(), buzz(), cancel_monst(), castmu(), check_leash(), container_impact_dmg(), cutoff(), cutworm(), damageum(), dig(), disarm_holdingtrap(), do_earthquake(), dochug(), dogaze(), dokick(), domindblast(), domove(), done(), dopay(), dopickup(), dosit(), dospinweb(), dotrap(), dountrap(), drop(), drop_boulder_on_monster(), e_nam(), engrave(), expels(), explum(), flash_hits_mon(), float_down(), float_up(), gazemm(), gazemu(), ghitm(), god_zaps_you(), grow_up(), gulpmm(), gulpmu(), gulpum(), help_monster_out(), hit(), hitmm(), hitmu(), hmon_hitmon(), hmonas(), jump(), kick_monster(), lifesaved_monster(), look_here(), m_dowear_type(), m_slips_free(), m_throw(), make_happy_shk(), mattackm(), mattacku(), Mb_hit(), mdamagem(), mintrap(), miss(), missum(), mlevel_tele_trap(), mon_break_armor(), mon_consume_unstone(), mon_nam_too(), mon_owns(), mon_reflects(), mon_wield_item(), Monnam(), mreadmsg(), mselftouch(), mswingsm(), newcham(), ohitmon(), passive(), passivemm(), pick_lock(), polymon(), potionhit(), precheck(), pri_move(), quest_chat(), revive_corpse(), rust_dmg(), select_newcham_form(), setmnotwielded(), shk_move(), spitmu(), split_mon(), start_engulf(), steal_it(), stolen_value(), tele(), tele_restrict(), thitmonst(), throw_gold(), try_disarm(), u_teleport_mon(), untrap(), urustm(), use_defensive(), use_grapple(), use_mirror(), use_misc(), use_offensive(), use_trap(), use_whip(), ustatusline(), xkilled(), and zap_dig().

Here is the call graph for this function:

Here is the caller graph for this function:

char* Monnam ( struct monst mtmp )

References bp, highc(), and mon_nam().

Referenced by addtobill(), artifact_hit(), attack(), awaken_soldiers(), bhitm(), breamu(), buzz(), buzzmu(), calm_nymphs(), cast_cleric_spell(), cast_wizard_spell(), castmu(), charm_snakes(), check_leash(), corpse_chance(), cthulhu_dies(), cursetxt(), cuss(), cutworm(), damageum(), destroy_mitem(), digactualhole(), djinni_from_bottle(), do_earthquake(), do_mname(), dochat(), dochug(), doconsult(), dodown(), dog_eat(), dog_hunger(), dog_invent(), dog_move(), dogaze(), dokick(), domonnoise(), dopay(), dotrap(), doup(), drop_boulder_on_monster(), E_phrase(), erode_obj(), explmm(), explmu(), explode(), explum(), fightm(), flash_hits_mon(), float_up(), gazemm(), gazemu(), gd_move(), gem_accept(), ghitm(), god_zaps_you(), golemeffects(), grease_protect(), growl(), gulpmm(), gulpmu(), gulpum(), help_monster_out(), hitmm(), hitmsg(), hitmu(), hmon_hitmon(), hmonas(), impact_drop(), inherits(), inside_gas_cloud(), intemple(), itsstuck(), jump(), keepdogs(), kick_monster(), kickdmg(), lantern_message(), launch_obj(), lifesaved_monster(), litroom(), m_dowear_type(), m_move(), m_respond(), m_throw(), m_unleash(), make_angry_shk(), make_corpse(), make_happy_shk(), mattackm(), mattacku(), mbhitm(), mdamagem(), mdrop_obj(), meatmetal(), meatobj(), minliquid(), minstapetrify(), mintrap(), missmm(), missmu(), mlevel_tele_trap(), mon_adjust_speed(), mon_break_armor(), mon_consume_unstone(), mon_to_stone(), mon_wield_item(), monflee(), monkilled(), move_special(), mpickgold(), mpickstuff(), mquaffmsg(), mreadmsg(), mrustm(), mselftouch(), mswings(), mswingsm(), mtele_trap(), mzapmsg(), new_were(), nh_timeout(), observe_quantum_cat(), obstructed(), ohitmon(), openit(), passive(), passivemm(), passiveum(), paygd(), poly_obj(), possibly_unwield(), potionhit(), precheck(), priest_talk(), prisoner_speaks(), relobj(), resist(), revive(), revive_corpse(), revive_cthulhu(), reward_untrap(), rouse_shk(), rust_dmg(), sellobj(), setmangry(), shk_chat(), shk_move(), shkcatch(), slept_monst(), spitmu(), split_mon(), steal(), steal_it(), stealamulet(), stealarm(), stealgold(), stolen_value(), tactics(), tamedog(), teleport_pet(), thitm(), thitmonst(), throwit(), thrwmu(), try_disarm(), try_lift(), u_slip_free(), u_teleport_mon(), unturn_dead(), urustm(), use_defensive(), use_leash(), use_mirror(), use_misc(), use_offensive(), use_stethoscope(), uunstick(), wary_dog(), whimper(), wildmiss(), and yelp().

Here is the call graph for this function:

Here is the caller graph for this function:

char* noit_mon_nam ( struct monst mtmp )

References ARTICLE_THE, FALSE, SUPPRESS_IT, SUPPRESS_SADDLE, and x_monnam().

Referenced by noit_Monnam(), and you_aggravate().

Here is the call graph for this function:

Here is the caller graph for this function:

char* noit_Monnam ( struct monst mtmp )

References bp, highc(), and noit_mon_nam().

Referenced by display_minventory(), dog_eat(), and probe_monster().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* oname ( struct obj obj,
const char *  name 
) [read]
struct obj* realloc_obj ( struct obj obj,
int  oextra_size,
genericptr_t  oextra_src,
int  oname_size,
const char *  name 
) [read]
const char* rndcolor (  )

References c_obj_colors, CLR_MAX, Hallucination, hcolor(), NO_COLOR, and rn2().

Referenced by chest_trap().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* rndghostname (  )

References plname, rn2(), and SIZE.

Referenced by makemon().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* rndmonnam (  )
char* x_monnam ( struct monst mtmp,
int  article,
const char *  adjective,
int  suppress,
boolean  called 
)
char* y_monnam ( struct monst mtmp )

References ARTICLE_THE, ARTICLE_YOUR, FALSE, monst::mtame, SUPPRESS_SADDLE, u, and x_monnam().

Referenced by attack(), dog_hunger(), dogaze(), domove(), dopickup(), enlightenment(), fix_worst_trouble(), invocation_message(), lookat(), moverock(), rndcurse(), test_move(), and u_entered_shop().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char* const bogusmons[] [static]
NEARDATA const char callable[] [static]
const char* const coynames[] [static]
Initial value:
 {
        "Carnivorous Vulgaris","Road-Runnerus Digestus",
        "Eatibus Anythingus"  ,"Famishus-Famishus",
        "Eatibus Almost Anythingus","Eatius Birdius",
        "Famishius Fantasticus","Eternalii Famishiis",
        "Famishus Vulgarus","Famishius Vulgaris Ingeniusi",
        "Eatius-Slobbius","Hardheadipus Oedipus",
        "Carnivorous Slobbius","Hard-Headipus Ravenus",
        "Evereadii Eatibus","Apetitius Giganticus",
        "Hungrii Flea-Bagius","Overconfidentii Vulgaris",
        "Caninus Nervous Rex","Grotesques Appetitus",
        "Nemesis Riduclii","Canis latrans"
}
const char* const ghostnames[] [static]
Initial value:
 {
        
        
        "Adri", "Andries", "Andreas", "Bert", "David", "Dirk", "Emile",
        "Frans", "Fred", "Greg", "Hether", "Jay", "John", "Jon", "Karnov",
        "Kay", "Kenny", "Kevin", "Maud", "Michiel", "Mike", "Peter", "Robert",
        "Ron", "Tom", "Wilmar", "Nick Danger", "Phoenix", "Jiro", "Mizue",
        "Stephan", "Lance Braccus", "Shadowhawk"
}
NEARDATA const char* const hcolors[] [static]
Initial value:
 {
        "ultraviolet", "infrared", "bluish-orange",
        "reddish-green", "dark white", "light black", "sky blue-pink",
        "salty", "sweet", "sour", "bitter", "umami",
        "striped", "spiral", "swirly", "plaid", "checkered", "argyle",
        "paisley", "blotchy", "guernsey-spotted", "polka-dotted",
        "square", "round", "triangular",
        "cabernet", "sangria", "fuchsia", "wisteria",
        "lemon-lime", "strawberry-banana", "peppermint",
        "romantic", "incandescent"
}

Referenced by getpos_help().