Defines | Functions | Variables

pager.c File Reference

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

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 permonstFDECL (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 permonstlookat (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 Documentation

#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().


Function Documentation

STATIC_OVL int append_str ( char *  buf,
const char *  new_str 
)

References BUFSZ, and strstri().

Referenced by do_look().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int do_look ( boolean  quick )
int dohelp (  )
int dohistory (  )

References display_file, HISTORY, and TRUE.

Referenced by dohelp().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

int dowhatdoes (  )

References BUFSZ, dowhatdoes_core(), pline(), and yn_function().

Referenced by dohelp().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int dowhatis (  )

References do_look(), and FALSE.

Referenced by dohelp().

Here is the call graph for this function:

Here is the caller graph for this function:

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 )
STATIC_OVL boolean is_swallow_sym ( int  c )

References FALSE, S_sw_br, S_sw_tl, showsyms, and TRUE.

Referenced by do_look().

Here is the caller graph for this function:

STATIC_OVL struct permonst* lookat ( int  x,
int  y,
char *  buf,
char *  monbuf 
) [read]

Variable Documentation

const char* help_menu_items[] [static]
Initial value:
 {
        "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().