#include "hack.h"#include "artifact.h"
Functions | |
| STATIC_DCL void | FDECL (do_dknown_of,(struct obj *)) |
| STATIC_DCL boolean | FDECL (check_map_spot,(int, int, CHAR_P, unsigned)) |
| STATIC_DCL boolean | FDECL (clear_stale_map,(CHAR_P, unsigned)) |
| STATIC_DCL void | FDECL (sense_trap,(struct trap *, XCHAR_P, XCHAR_P, int)) |
| STATIC_DCL void | FDECL (show_map_spot,(int, int)) |
| STATIC_PTR void | FDECL (findone,(int, int, genericptr_t)) |
| STATIC_PTR void | FDECL (openone,(int, int, genericptr_t)) |
| struct obj * | o_in (struct obj *obj, char oclass) |
| struct obj * | o_material (struct obj *obj, unsigned material) |
| STATIC_OVL void | do_dknown_of (struct obj *obj) |
| STATIC_OVL boolean | check_map_spot (int x, int y, char oclass, unsigned material) |
| STATIC_OVL boolean | clear_stale_map (char oclass, unsigned material) |
| int | gold_detect (struct obj *sobj) |
| int | food_detect (struct obj *sobj) |
| int | object_detect (struct obj *detector, int class) |
| int | monster_detect (struct obj *otmp, int mclass) |
| STATIC_OVL void | sense_trap (struct trap *trap, xchar x, xchar y, int src_cursed) |
| int | trap_detect (struct obj *sobj) |
| const char * | level_distance (d_level *where) |
| void | use_crystal_ball (struct obj *obj) |
| STATIC_OVL void | show_map_spot (int x, int y) |
| void | do_mapping () |
| void | do_vicinity_map () |
| void | cvt_sdoor_to_door (struct rm *lev) |
| STATIC_PTR void | findone (int zx, int zy, genericptr_t num) |
| STATIC_PTR void | openone (int zx, int zy, genericptr_t num) |
| int | findit () |
| int | openit () |
| void | find_trap (struct trap *trap) |
| int | dosearch0 (int aflag) |
| int | dosearch () |
| void | sokoban_detect () |
Variables | |
| boolean | known |
| struct { | |
| const char * what | |
| d_level * where | |
| } | level_detects [] |
| STATIC_OVL boolean check_map_spot | ( | int | x, |
| int | y, | ||
| char | oclass, | ||
| unsigned | material | ||
| ) |
References ALL_CLASSES, COIN_CLASS, FALSE, glyph_at(), glyph_is_object, glyph_to_obj, GOLD, level, m_at, monst::mgold, monst::minvent, obj::nobj, o_in(), o_material(), objects, dlevel_t::objects, otmp, and TRUE.
Referenced by clear_stale_map().


| STATIC_OVL boolean clear_stale_map | ( | char | oclass, |
| unsigned | material | ||
| ) |
References check_map_spot(), COLNO, FALSE, ROWNO, TRUE, and unmap_object().
Referenced by food_detect(), gold_detect(), and object_detect().


| void cvt_sdoor_to_door | ( | struct rm * | lev ) |
References D_CLOSED, D_LOCKED, D_NODOOR, DOOR, Is_rogue_level, u, you::uz, and WM_MASK.
Referenced by dig(), dokick(), dosearch0(), findone(), mdig_tunnel(), openone(), seffects(), stock_room(), and use_stethoscope().

| STATIC_OVL void do_dknown_of | ( | struct obj * | obj ) |
References obj::cobj, Has_contents, obj::nobj, and otmp.
Referenced by object_detect().

| void do_mapping | ( | ) |
References A_WIS, COLNO, display_nhwindow, docrt(), exercise(), dlevel_t::flags, flush_screen(), level, ROWNO, show_map_spot(), TRUE, u, Underwater, and WIN_MAP.
Referenced by dosit(), and seffects().


| void do_vicinity_map | ( | ) |
References COLNO, display_nhwindow, docrt(), dlevel_t::flags, flush_screen(), level, ROWNO, show_map_spot(), TRUE, u, Underwater, you::ux, you::uy, and WIN_MAP.
Referenced by moveloop(), and spelleffects().


| int dosearch | ( | ) |
| int dosearch0 | ( | int | aflag ) |
References a_monnam(), A_WIS, activate_statue_trap(), Blind, canspotmon, CORR, cvt_sdoor_to_door(), monst::data, exercise(), FALSE, feel_location(), find_trap(), glyph_is_invisible, if(), is_hider, isok(), LENSES, levl, monst::m_ap_type, m_at, map_invisible(), permonst::mlet, newsym(), nomul(), obj::oartifact, obj::otyp, pline(), rnl(), S_EEL, SCORR, SDOOR, seemimic(), sensemon, obj::spe, spec_ability(), SPFX_SEARCH, STATUE_TRAP, t_at(), TRUE, u, ublindf, unblock_point(), unmap_object(), uwep, you::ux, and you::uy.
Referenced by dosearch(), and moveloop().


| STATIC_DCL void FDECL | ( | sense_trap | , |
| (struct trap *, XCHAR_P, XCHAR_P, int) | |||
| ) |
| STATIC_DCL void FDECL | ( | show_map_spot | , |
| (int, int) | |||
| ) |
| STATIC_DCL boolean FDECL | ( | check_map_spot | , |
| (int, int, CHAR_P, unsigned) | |||
| ) |
| STATIC_DCL void FDECL | ( | do_dknown_of | , |
| (struct obj *) | |||
| ) |
| STATIC_DCL boolean FDECL | ( | clear_stale_map | , |
| (CHAR_P, unsigned) | |||
| ) |
| STATIC_PTR void FDECL | ( | findone | , |
| (int, int, genericptr_t) | |||
| ) |
| STATIC_PTR void FDECL | ( | openone | , |
| (int, int, genericptr_t) | |||
| ) |
| void find_trap | ( | struct trap * | trap ) |
References A_WIS, an(), Blind, cls(), defsyms, display_nhwindow, display_self, docrt(), exercise(), FALSE, feel_location(), levl, map_trap(), newsym(), trap_to_defsym, trap_to_glyph, TRUE, what_trap, and WIN_MAP.
Referenced by dosearch0(), and kick_object().


| int findit | ( | ) |
References BOLT_LIM, do_clear_area(), findone(), u, you::ux, and you::uy.
Referenced by use_bell(), and zapnodir().


| STATIC_PTR void findone | ( | int | zx, |
| int | zy, | ||
| genericptr_t | num | ||
| ) |
References canspotmon, CORR, cvt_sdoor_to_door(), monst::data, glyph_is_invisible, is_hider, levl, monst::m_ap_type, m_at, magic_map_background(), map_invisible(), permonst::mlet, newsym(), S_EEL, SCORR, SDOOR, seemimic(), STATUE_TRAP, t_at(), unblock_point(), and unmap_object().
Referenced by findit().


| int food_detect | ( | struct obj * | sobj ) |
References A_WIS, flag::beginner, body_part(), BUFSZ, clear_stale_map(), cls(), Confusion, display_nhwindow, docrt(), exercise(), FALSE, flags, fmon, fobj, FOOD_CLASS, known, map_object(), monst::minvent, monst::mx, monst::my, newsym(), monst::nmon, obj::nobj, NOSE, o_in(), obj::ox, obj::oy, pline(), POTION_CLASS, something, Sprintf, strange_feeling(), TRUE, u, under_ground(), under_water(), Underwater, you::ux, you::uy, what, and WIN_MAP.
Referenced by seffects().


| int gold_detect | ( | struct obj * | sobj ) |
References A_WIS, body_part(), BUFSZ, clear_stale_map(), cls(), COIN_CLASS, currency(), monst::data, DEADMONSTER, display_nhwindow, docrt(), exercise(), fmon, fobj, FOOT, GOLD, GOLD_PIECE, hidden_gold(), invent, known, makeplural(), map_object(), monst::mgold, monst::minvent, mons, monsndx(), monst::mx, monst::my, newsym(), monst::nmon, obj::nobj, o_in(), o_material(), obj::otyp, obj::ox, obj::oy, PM_GOLD_GOLEM, Sprintf, strange_feeling(), Strcpy, TRUE, u, you::ugold, under_ground(), under_water(), Underwater, you::ux, you::uy, WIN_MAP, and youmonst.
Referenced by seffects().


| const char* level_distance | ( | d_level * | where ) |
References depth(), d_level::dnum, rn2(), u, and you::uz.
Referenced by use_crystal_ball().


| int monster_detect | ( | struct obj * | otmp, |
| int | mclass | ||
| ) |
References cls(), monst::data, DEADMONSTER, def_monsyms, detect_wsegs(), detected_mon_to_glyph, display_nhwindow, display_self, docrt(), FALSE, fmon, Hallucination, permonst::mlet, mon_to_glyph, mons, monst::mx, monst::my, monst::nmon, pline(), PM_LONG_WORM, S_WORM_TAIL, show_glyph(), strange_feeling(), TRUE, u, under_ground(), under_water(), Underwater, and WIN_MAP.
Referenced by drinkfountain(), peffects(), and use_crystal_ball().


References obj::cobj, Has_contents, obj::nobj, obj::oclass, and otmp.
Referenced by check_map_spot(), food_detect(), gold_detect(), and object_detect().

References obj::cobj, Has_contents, obj::nobj, objects, otmp, and obj::otyp.
Referenced by check_map_spot(), and gold_detect().

| int object_detect | ( | struct obj * | detector, |
| int | class | ||
| ) |
References ALL_CLASSES, BUFSZ, dlevel_t::buriedobjlist, clear_stale_map(), cls(), COIN_CLASS, COLNO, obj::corpsenm, DEADMONSTER, def_oc_syms, display_nhwindow, do_dknown_of(), docrt(), fmon, GOLD_PIECE, if(), level, M_AP_OBJECT, monst::m_ap_type, map_object(), monst::mappearance, MAXOCLASSES, monst::mgold, monst::minvent, monst::mx, monst::my, newsym(), monst::nmon, obj::nobj, o_in(), dlevel_t::objects, objects, objclass::oc_class, obj::oclass, otmp, obj::otyp, obj::ox, obj::oy, PM_TENGU, POTION_CLASS, ROCK_CLASS, ROWNO, SPBOOK_CLASS, strange_feeling(), Strcat, Strcpy, TRUE, u, under_ground(), under_water(), Underwater, you::ux, you::uy, and WIN_MAP.
Referenced by peffects(), seffects(), and use_crystal_ball().


| int openit | ( | ) |
References Blind, BOLT_LIM, monst::data, do_clear_area(), expels(), is_animal, Monnam(), openone(), pline(), TRUE, u, you::ustuck, you::ux, and you::uy.
Referenced by use_bell().


| STATIC_PTR void openone | ( | int | zx, |
| int | zy, | ||
| genericptr_t | num | ||
| ) |
References b_trapped(), cansee, CORR, cvt_sdoor_to_door(), D_CLOSED, D_ISOPEN, D_LOCKED, D_NODOOR, D_TRAPPED, distu, DOOR, doormask, find_drawbridge(), flags, Is_box, level, levl, newsym(), OBJ_AT, dlevel_t::objects, open_drawbridge(), otmp, SCORR, SDOOR, flag::soundok, STATUE_TRAP, t_at(), unblock_point(), and wake_nearto().
Referenced by openit().


References BEAR_TRAP, obj::corpsenm, GOLD_PIECE, Hallucination, map_object(), map_trap(), obj::otyp, obj::ox, obj::oy, random_monster, random_object, trap::tx, trap::ty, trap::x, and trap::y.
Referenced by trap_detect().


| STATIC_OVL void show_map_spot | ( | int | x, |
| int | y | ||
| ) |
References Confusion, CORR, dlevel_t::flags, rm::glyph, glyph_is_cmap, glyph_is_object, glyph_is_trap, glyph_to_cmap, level, levl, magic_map_background(), newsym(), rn2(), ROOM, SCORR, rm::seenv, SVALL, rm::typ, and unblock_point().
Referenced by do_mapping(), and do_vicinity_map().


| void sokoban_detect | ( | ) |
References BOULDER, COLNO, CORR, instance_flags::dark_room, DOOR, ftrap, iflags, IS_WALL, level, levl, map_background(), map_object(), map_trap(), trap::ntrap, dlevel_t::objects, obj::otyp, ROWNO, SCORR, SDOOR, and SVALL.
Referenced by sp_level_coder().


| int trap_detect | ( | struct obj * | sobj ) |
References body_part(), CHEST, cls(), D_TRAPPED, display_nhwindow, docrt(), doorindex, doors, FALSE, fobj, ftrap, IRON_SAFE, LARGE_BOX, levl, makeplural(), newsym(), obj::nobj, trap::ntrap, obj::otyp, obj::ox, obj::oy, sense_trap(), Sprintf, strange_feeling(), TOE, TRUE, trap::tx, trap::ty, u, under_ground(), under_water(), Underwater, you::ux, you::uy, WIN_MAP, nhcoord::x, and nhcoord::y.
Referenced by seffects(), and use_crystal_ball().


| void use_crystal_ball | ( | struct obj * | obj ) |
References A_INT, ACURR, Blind, Blinded, instance_flags::bouldersym, consume_obj_charge(), CRYSTAL_BALL, def_char_to_monclass(), def_char_to_objclass(), DEF_MIMIC, DEF_MIMIC_DEF, def_monsyms, FALSE, flags, Hallucination, hcolor(), HConfusion, HHallucination, iflags, index, KILLED_BY_AN, level_detects, level_distance(), losehp(), make_blinded(), make_confused(), make_hallucinated(), makeknown, MAXMCLASSES, MAXOCLASSES, monster_detect(), Never_mind, nomovemsg, nomul(), object_detect(), pline(), poly_gender(), quitchars, resists_blnd(), rn2(), rnd(), ROCK_CLASS, S_GHOST, SIZE, the(), Tobjnam(), trap_detect(), TRUE, useup(), flag::verbose, vision_clears, what, where, xname(), yn_function(), and youmonst.
Referenced by arti_invoke(), and doapply().


Referenced by create_critters(), doread(), food_detect(), forget_map(), gold_detect(), seffects(), use_defensive(), and zapnodir().
struct { ... } level_detects[] [static] |
Referenced by use_crystal_ball().
| const char* what |
Referenced by boulder_hits_pool(), ceiling(), doapply(), donning(), doread(), fix_worst_trouble(), food_detect(), hitmu(), hmon_hitmon(), impact_drop(), kickstr(), on_fire(), opentin(), pick_lock(), pickup(), priestname(), rottenfood(), silly_thing(), slip_or_trip(), stumble_onto_mimic(), use_crystal_ball(), use_towel(), use_trap(), ustatusline(), and wield_tool().
Referenced by carry_count(), done(), obj_delivery(), open_levelfile(), query_classes(), revive_corpse(), rottenfood(), tactics(), and use_crystal_ball().
1.7.2