#include "hack.h"
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 monst * | christen_monst (struct monst *mtmp, const char *name) |
int | do_mname () |
STATIC_OVL void | do_oname (struct obj *obj) |
struct obj * | realloc_obj (struct obj *obj, int oextra_size, genericptr_t oextra_src, int oname_size, const char *name) |
struct obj * | oname (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 [] |
char* a_monnam | ( | struct monst * | mtmp ) |
References ARTICLE_A, FALSE, SUPPRESS_SADDLE, and x_monnam().
Referenced by Amonnam(), animate_statue(), charm_snakes(), create_polymon(), djinni_from_bottle(), dosacrifice(), dosearch0(), dowaterdemon(), dowaternymph(), enlightenment(), fig_transform(), hatch_egg(), hurtle_step(), lookat(), mattackm(), mon_to_stone(), moverock(), precheck(), spoteffects(), stumble_onto_mimic(), and use_bell().
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().
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().
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().
char* coyotename | ( | struct monst * | mtmp, |
char * | buf | ||
) |
References ARTICLE_NONE, rn2(), SIZE, Sprintf, TRUE, and x_monnam().
Referenced by lookat().
int ddocall | ( | ) |
References ALL_CLASSES, do_oname(), docall(), getobj(), REDO, xname(), and ynq.
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().
int do_mname | ( | ) |
References ARTICLE_THE, beautiful(), BUFSZ, cansee, canspotmon, christen_monst(), monst::data, distant_monnam(), FALSE, G_UNIQ, permonst::geno, getlin, getpos(), Hallucination, M_AP_FURNITURE, M_AP_OBJECT, monst::m_ap_type, m_at, Monnam(), mungspaces(), pline(), plname, QBUFSZ, See_invisible, see_with_infrared, sensemon, Sprintf, u, you::ux, you::uy, nhcoord::x, and nhcoord::y.
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().
void docall | ( | struct obj * | obj ) |
References an(), BUFSZ, check_tutorial_message(), discover_object(), FALSE, getlin, mungspaces(), OBJ_DESCR, objects, objclass::oc_class, objclass::oc_uname, obj::onamelth, obj::otyp, obj::oxlth, POTION_CLASS, QBUFSZ, QT_T_CALLITEM, obj::quan, Sprintf, TRUE, undiscover_object(), and xname().
Referenced by Amulet_on(), confused_book(), ddocall(), dip(), doeat(), dopotion(), doread(), pickup_object(), potionbreathe(), potionhit(), strange_feeling(), study_book(), use_defensive(), and use_misc().
static void FDECL | ( | getpos_help | , |
(BOOLEAN_P, const char *) | |||
) | [static] |
STATIC_DCL void FDECL | ( | do_oname | , |
(struct obj *) | |||
) |
References back_to_glyph(), clear_nhwindow, COLNO, curs, defsyms, FALSE, flags, flush_screen(), getpos_help(), glyph_at(), glyph_is_cmap, glyph_to_cmap, iflags, index, IS_DOOR, IS_WALL, isok(), levl, lowc(), MAXPCHARS, ndir, nh_poskey, instance_flags::num_pad, pline(), quitchars, ROWNO, S_corr, S_darkroom, S_litcorr, S_room, sdir, SDOOR, sgn(), showsyms, TRUE, flag::verbose, visctrl(), WIN_MAP, WIN_MESSAGE, xdir, and ydir.
Referenced by do_look(), do_mname(), dopay(), dotravel(), jump(), seffects(), tele(), throwspell(), use_grapple(), and use_pole().
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().
const char* hcolor | ( | char * | colorpref ) | const |
References Hallucination, rn2(), and SIZE.
Referenced by angrygods(), artifact_hit(), cast_protection(), choke_dialogue(), chwepon(), destroy_item(), destroy_mitem(), dip(), doaltarobj(), doapply(), dokick(), dosacrifice(), fix_worst_trouble(), Helmet_on(), intervene(), nh_timeout(), nohandglow(), opentin(), p_glow2(), pleased(), rndcolor(), rndcurse(), seffects(), slime_dialogue(), use_crystal_ball(), use_mirror(), and water_prayer().
char* l_monnam | ( | struct monst * | mtmp ) |
References ARTICLE_NONE, SUPPRESS_SADDLE, TRUE, and x_monnam().
Referenced by attack_checks(), dogaze(), and use_leash().
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().
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().
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().
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().
char* noit_Monnam | ( | struct monst * | mtmp ) |
References bp, highc(), and noit_mon_nam().
Referenced by display_minventory(), dog_eat(), and probe_monster().
References artifact_exists(), carried, exist_artifact(), ONAME, PL_PSIZ, realloc_obj(), set_artifact_intrinsic(), Strcpy, TRUE, untwoweapon(), update_inventory, uswapwep, uwep, and W_WEP.
Referenced by create_object(), dipfountain(), do_oname(), m_initweap(), make_corpse(), merged(), mk_artifact(), mk_named_object(), monstone(), readobjnam(), shkinit(), and tt_oname().
struct obj* realloc_obj | ( | struct obj * | obj, |
int | oextra_size, | ||
genericptr_t | oextra_src, | ||
int | oname_size, | ||
const char * | name | ||
) | [read] |
References book_substitution(), obj::cobj, dealloc_obj(), FOOD_CLASS, food_substitution(), Has_contents, newobj, obj::nobj, OATTACHED_NOTHING, obj_move_light_source(), obj_move_timers(), obj::oextra, ONAME, obj::onamelth, otmp, obj::owornmask, obj::oxlth, replace_object(), setworn(), SPBOOK_CLASS, Strcpy, obj::timed, you::twoweap, and u.
Referenced by obj_attach_mid(), oname(), and save_mtraits().
const char* rndcolor | ( | ) |
References c_obj_colors, CLR_MAX, Hallucination, hcolor(), NO_COLOR, and rn2().
Referenced by chest_trap().
const char* rndghostname | ( | ) |
const char* rndmonnam | ( | ) |
References G_NOGEN, permonst::geno, LOW_PM, permonst::mname, mons, name, rn1, SIZE, SPECIAL_PM, and type_is_pname.
Referenced by create_camera_demon(), dowatersnakes(), ghost_from_bottle(), observe_quantum_cat(), opentin(), precheck(), priestname(), slime_dialogue(), and x_monnam().
char* x_monnam | ( | struct monst * | mtmp, |
int | article, | ||
const char * | adjective, | ||
int | suppress, | ||
boolean | called | ||
) |
References an(), ARTICLE_A, ARTICLE_NONE, ARTICLE_THE, ARTICLE_YOUR, Blind, bp, BUFSZ, canseemon, canspotmon, distu, EHalluc_resistance, eos(), FALSE, G_UNIQ, sinfo::gameover, permonst::geno, Hallucination, In_endgame, is_mplayer, is_rider, lcase(), permonst::mname, mons, monsndx(), NAME, name, pbuf, PM_GHOST, PM_SHOPKEEPER, PM_WIZARD_OF_YENDOR, priestname(), program_state, rank_of(), rndmonnam(), s_suffix(), shkname(), Sprintf, Strcat, Strcpy, strstri(), SUPPRESS_HALLUCINATION, SUPPRESS_INVISIBLE, SUPPRESS_IT, SUPPRESS_SADDLE, TRUE, type_is_pname, u, you::ustuck, and you::uz.
Referenced by a_monnam(), Adjmonnam(), coyotename(), distant_monnam(), do_earthquake(), dopay(), dotrap(), enlightenment(), l_monnam(), loot_mon(), m_monnam(), mdamagem(), mon_nam(), mreadmsg(), mstatusline(), newcham(), noit_mon_nam(), slip_or_trip(), spoteffects(), xkilled(), and y_monnam().
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().
const char* const bogusmons[] [static] |
NEARDATA const char callable[] [static] |
const char* const coynames[] [static] |
{ "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] |
{ "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] |
{ "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" }
const char what_is_an_unknown_object[] |
Referenced by getpos_help().