#include "hack.h"#include "dlb.h"
Defines | |
| #define | LOOK_TRADITIONAL 0 |
| #define | LOOK_QUICK 1 |
| #define | LOOK_ONCE 2 |
| #define | LOOK_VERBOSE 3 |
| #define | is_cmap_trap(i) ((i) >= S_arrow_trap && (i) <= S_polymorph_trap) |
| #define | is_cmap_drawbridge(i) ((i) >= S_vodbridge && (i) <= S_hcdbridge) |
| #define | TUTHLP_SLOT 9 |
| #define | WIZHLP_SLOT 10 |
Functions | |
| STATIC_DCL boolean | FDECL (is_swallow_sym,(int)) |
| STATIC_DCL int | FDECL (append_str,(char *, const char *)) |
| STATIC_DCL struct permonst * | FDECL (lookat,(int, int, char *, char *)) |
| STATIC_DCL void | FDECL (checkfile,(char *, struct permonst *, BOOLEAN_P, BOOLEAN_P)) |
| STATIC_DCL int | FDECL (do_look,(BOOLEAN_P)) |
| STATIC_DCL boolean | FDECL (help_menu,(int *)) |
| STATIC_OVL boolean | is_swallow_sym (int c) |
| STATIC_OVL int | append_str (char *buf, const char *new_str) |
| STATIC_OVL struct permonst * | lookat (int x, int y, char *buf, char *monbuf) |
| STATIC_OVL void | checkfile (char *inp, struct permonst *pm, boolean user_typed_name, boolean without_asking) |
| STATIC_OVL int | do_look (boolean quick) |
| int | dowhatis () |
| int | doquickwhatis () |
| int | doidtrap () |
| char * | dowhatdoes_core (char q, char *cbuf) |
| int | dowhatdoes () |
| STATIC_OVL boolean | help_menu (int *sel) |
| int | dohelp () |
| int | dohistory () |
Variables | |
| const char | what_is_an_unknown_object [] = "an unknown object" |
| static const char * | help_menu_items [] |
| #define is_cmap_drawbridge | ( | i ) | ((i) >= S_vodbridge && (i) <= S_hcdbridge) |
Referenced by do_look().
| #define is_cmap_trap | ( | i ) | ((i) >= S_arrow_trap && (i) <= S_polymorph_trap) |
Referenced by do_look().
| #define LOOK_ONCE 2 |
Referenced by do_look().
| #define LOOK_QUICK 1 |
Referenced by do_look().
| #define LOOK_TRADITIONAL 0 |
| #define LOOK_VERBOSE 3 |
Referenced by do_look().
| #define TUTHLP_SLOT 9 |
Referenced by help_menu().
| #define WIZHLP_SLOT 10 |
Referenced by help_menu().
| STATIC_OVL int append_str | ( | char * | buf, |
| const char * | new_str | ||
| ) |
| STATIC_OVL void checkfile | ( | char * | inp, |
| struct permonst * | pm, | ||
| boolean | user_typed_name, | ||
| boolean | without_asking | ||
| ) |
References BUFSZ, create_nhwindow, DATAFILE, destroy_nhwindow, digit(), display_nhwindow, dlb, dlb_fclose, dlb_fgets, dlb_fopen, dlb_fseek, FALSE, index, lcase(), makesingular(), permonst::mname, NHW_MENU, pline(), pmatch(), putstr, SEEK_SET, strstri(), tabexpand(), TRUE, and yn.
Referenced by do_look().


| STATIC_OVL int do_look | ( | boolean | quick ) |
References an(), append_str(), BOULDER, instance_flags::bouldersym, BUFSZ, check_tutorial_farlook(), checkfile(), DEF_INVISIBLE, def_monsyms, def_oc_syms, def_warnsyms, defsyms, symdef::explanation, FALSE, flags, getlin, getpos(), glyph_at(), glyph_is_cmap, glyph_is_invisible, glyph_is_monster, glyph_is_object, glyph_is_swallow, glyph_is_trap, glyph_is_warning, glyph_to_cmap, glyph_to_mon, glyph_to_obj, glyph_to_swallow, glyph_to_trap, glyph_to_warning, flag::help, iflags, invisexplain, is_cmap_drawbridge, is_cmap_trap, is_swallow_sym(), LOOK_ONCE, LOOK_QUICK, LOOK_VERBOSE, lookat(), MAXMCLASSES, MAXOCLASSES, MAXPCHARS, permonst::mlet, monexplain, mons, monsyms, objects, objexplain, objclass::oc_class, oc_syms, pline(), pm, PM_ELF, PM_HUMAN, Race_if, S_altar, S_darkroom, S_HUMAN, S_room, S_sw_tl, instance_flags::showrace, showsyms, sobj_at(), Sprintf, Strcat, Strcpy, the(), trap_to_defsym, TRUE, u, Upolyd, you::ux, you::uy, VENOM_CLASS, flag::verbose, WARNCOUNT, warnsyms, nhcoord::x, nhcoord::y, and ynq.
Referenced by doquickwhatis(), and dowhatis().


| int dohelp | ( | ) |
References DEBUGHELP, display_file, doextlist(), dohistory(), dowhatdoes(), dowhatis(), HELP, help_menu(), LICENSE, option_help(), OPTIONFILE, SHELP, TRUE, and tutorial_redisplay().

| int dohistory | ( | ) |
References display_file, HISTORY, and TRUE.
Referenced by dohelp().

| int doidtrap | ( | ) |
| int doquickwhatis | ( | ) |
References check_tutorial_message(), do_look(), iflags, instance_flags::num_pad, QT_T_CURSOR_NUMPAD, QT_T_CURSOR_VIKEYS, and TRUE.

| int dowhatdoes | ( | ) |
References BUFSZ, dowhatdoes_core(), pline(), and yn_function().
Referenced by dohelp().


| char* dowhatdoes_core | ( | char | q, |
| char * | cbuf | ||
| ) |
References BUFSZ, CMDHELPFILE, dlb, dlb_fclose, dlb_fgets, dlb_fopen, index, pline(), and Strcpy.
Referenced by dowhatdoes(), and help_dir().


| int dowhatis | ( | ) |
| STATIC_DCL struct permonst* FDECL | ( | lookat | , |
| (int, int, char *, char *) | |||
| ) | [read] |
| STATIC_DCL int FDECL | ( | append_str | , |
| (char *, const char *) | |||
| ) |
| STATIC_DCL void FDECL | ( | checkfile | , |
| (char *, struct permonst *, BOOLEAN_P, BOOLEAN_P) | |||
| ) |
| STATIC_DCL int FDECL | ( | do_look | , |
| (BOOLEAN_P) | |||
| ) |
| STATIC_DCL boolean FDECL | ( | help_menu | , |
| (int *) | |||
| ) |
| STATIC_DCL boolean FDECL | ( | is_swallow_sym | , |
| (int) | |||
| ) |
| STATIC_OVL boolean help_menu | ( | int * | sel ) |
References any::a_int, any::a_void, add_menu, ATR_NONE, create_nhwindow, destroy_nhwindow, end_menu, FALSE, flags, mi::item, MENU_UNSELECTED, NHW_MENU, NO_GLYPH, PICK_ONE, PORT_HELP, PORT_ID, QBUFSZ, select_menu, Sprintf, start_menu, TRUE, TUTHLP_SLOT, flag::tutorial, wizard, and WIZHLP_SLOT.
Referenced by dohelp().

| STATIC_OVL boolean is_swallow_sym | ( | int | c ) |
| STATIC_OVL struct permonst* lookat | ( | int | x, |
| int | y, | ||
| char * | buf, | ||
| char * | monbuf | ||
| ) | [read] |
References a_monnam(), Race::adj, align_str(), altarmask, AM_SHRINE, Amask2align, an(), ARTICLE_NONE, BEAR_TRAP, bhitpos, Blind, BUFSZ, cansee, canseemon, closed_door(), COIN_CLASS, coyotename(), current_fruit, D_BROKEN, D_TRAPPED, monst::data, dealloc_obj(), defsyms, Detect_monsters, distant_monnam(), distant_name(), distu, doormask, eos(), FALSE, glyph_at(), glyph_is_cmap, glyph_is_monster, glyph_is_object, glyph_is_trap, glyph_to_cmap, glyph_to_obj, glyph_to_trap, Hallucination, if(), In_endgame, Infravision, Invis, Invisible, Is_airlevel, is_drawbridge_wall(), is_lava(), is_pool(), IS_WALL, levl, m_at, makeplural(), mksobj(), permonst::mname, mon_visible, mons, monst::mtame, monst::mx, monst::my, name, NO_TRAP, obj::oclass, otmp, obj::otyp, PIT, plname, pm, PM_COYOTE, PM_GNOME, PM_WIZARD, QBUFSZ, obj::quan, Race_if, Role_if, S_altar, S_cloud, S_ndoor, SCORR, SDOOR, See_invisible, see_with_infrared, senseself, SLIME_MOLD, obj::spe, SPIKED_PIT, Sprintf, sticks(), STONE, STRANGE_OBJECT, Strcat, Strcpy, t_at(), tp_sensemon, trap_to_defsym, u, you::umonnum, Unblind_telepat, Upolyd, urace, you::ustuck, you::ux, you::uy, you::uz, vobj_at, WEB, what_trap, worm_known(), nhcoord::x, xname(), you::xray_range, nhcoord::y, y_monnam(), and youmonst.
Referenced by do_look().


const char* help_menu_items[] [static] |
{
"Long description of the game and commands.",
"List of game commands.",
"Concise history of NetHack.",
"Info on a character in the game display.",
"Info on what a given key does.",
"List of game options.",
"Longer explanation of game options.",
"List of extended commands.",
"The NetHack license.",
"Redisplay tutorial messages.",
#define TUTHLP_SLOT
#define WIZHLP_SLOT
"",
(char *)0
}
| const char what_is_an_unknown_object[] = "an unknown object" |
Referenced by getpos_help().
1.7.2