File src/questpgr.c

References Variables: cvt_bufsrc/questpgr.c

Included Files


Preprocessor definitions

#define QTEXT_FILE "quest.dat"

Local Variables

in_line
static char in_line[80]
Used in: convert_line()
  deliver_by_pline()
  deliver_by_window()

cvt_buf
static char cvt_buf[64]
Used in:  src/questpgr.c
  convert_arg()
  convert_line()

out_line
static char out_line[128]
Used in: convert_line()
  deliver_by_pline()
  deliver_by_window()

qt_list
static struct qtlists qt_list
Used in: com_pager()
  load_qtlist()
  qt_pager()
  unload_qtlist()

msg_file
static dlb* msg_file
Used in: com_pager()
  construct_qtlist()
  deliver_by_pline()
  deliver_by_window()
  load_qtlist()
  qt_pager()
  unload_qtlist()

nambuf
static char nambuf[sizeofcvt_buf]
Used in: ldrname()
  neminame()


Global Function com_pager()

void com_pager ( int msgnum )
Prototyped in: include/extern.h
Calls: deliver_by_pline()src/questpgr.c
  deliver_by_window()src/questpgr.c
  dlb_fseek()src/dlb.c
  impossible()src/pline.c
  msg_in()src/questpgr.c
Called by: finish_quest()src/quest.c
  goto_level()src/do.c
  newgame()src/allmain.c
References Variables: msg_filesrc/questpgr.c
  qt_listsrc/questpgr.c

Global Function is_quest_artifact()

boolean is_quest_artifact ( struct obj* otmp )
Prototyped in: include/extern.h
Called by: addinv_core1()src/invent.c
  chat_with_leader()src/quest.c
  dogfood()src/dog.c
  freeinv_core()src/invent.c
  hitmu()src/mhitu.c
  readobjnam()src/objnam.c
  resetobjs()src/bones.c
  thitmonst()src/dothrow.c
References Variables: urole

Global Function ldrname()

const char* ldrname ( void )
Prototyped in: include/extern.h
Calls: sprintf()
Called by: convert_arg()src/questpgr.c
References Variables: monssrc/monst.c
  nambufsrc/questpgr.c
  urole

Global Function leaderless()

boolean leaderless ( void )
Prototyped in: include/extern.h
Called by: goto_level()src/do.c
References Variables: mvitalssrc/decl.c
  urole

Global Function load_qtlist()

void load_qtlist ( void )
Prototyped in: include/extern.h
Calls: Fread()src/dungeon.c
  construct_qtlist()src/questpgr.c
  dlb_fopen()src/dlb.c
  impossible()src/pline.c
  panic()src/end.c
  strncmp()
Called by: newgame()src/allmain.c
References Variables: msg_filesrc/questpgr.c
  qt_listsrc/questpgr.c
  urole

Global Function qt_montype()

struct permonst* qt_montype ( void )
Prototyped in: include/extern.h
Calls: mkclass()src/makemon.c
  rn2()
Called by: rndmonst()src/makemon.c
References Variables: monssrc/monst.c
  mvitalssrc/decl.c
  urole

Global Function qt_pager()

void qt_pager ( int msgnum )
Prototyped in: include/extern.h
Calls: deliver_by_pline()src/questpgr.c
  deliver_by_window()src/questpgr.c
  dlb_fseek()src/dlb.c
  impossible()src/pline.c
  msg_in()src/questpgr.c
  strcmp()
Called by: artitouch()src/quest.c
  chat_with_guardian()src/quest.c
  chat_with_leader()src/quest.c
  chat_with_nemesis()src/quest.c
  finish_quest()src/quest.c
  leader_speaks()src/quest.c
  nemdead()src/quest.c
  nemesis_speaks()src/quest.c
  on_goal()src/quest.c
  on_locate()src/quest.c
  on_start()src/quest.c
References Variables: msg_filesrc/questpgr.c
  qt_listsrc/questpgr.c
  windowprocs

Global Function quest_info()

short quest_info ( int typ )
Prototyped in: include/extern.h
Calls: impossible()src/pline.c
Called by: setmangry()src/mon.c
References Variables: urole

Global Function unload_qtlist()

void unload_qtlist ( void )
Prototyped in: include/extern.h
Calls: dlb_fclose()src/dlb.c
  free()
References Variables: msg_filesrc/questpgr.c
  qt_listsrc/questpgr.c

Local Function Fread()

static void Fread ( genericptr_t ptr, int size, int nitems, dlb* stream )
Prototyped in: src/questpgr.c
Calls: dlb_fread()src/dlb.c
  panic()src/end.c
Called by: construct_qtlist()src/questpgr.c
  load_qtlist()src/questpgr.c

Local Function construct_qtlist()

static struct qtmsg* construct_qtlist ( long hdr_offset )
Prototyped in: src/questpgr.c
Calls: Fread()src/dungeon.c
  alloc()src/alloc.c
  dlb_fseek()src/dlb.c
Called by: load_qtlist()src/questpgr.c
References Variables: msg_filesrc/questpgr.c

Local Function convert_arg()

static void convert_arg ( char c )
Prototyped in: src/questpgr.c
Calls: align_gname()src/pray.c
  align_gtitle()src/pray.c
  align_str()src/pline.c
  artiname()src/artifact.c
  guardname()src/questpgr.c
  homebase()src/questpgr.c
  intermed()src/questpgr.c
  ldrname()src/questpgr.c
  neminame()src/questpgr.c
  rank_of()src/botl.c
  the()src/objnam.c
  strcpy()
Called by: convert_line()src/questpgr.c
References Variables: cvt_bufsrc/questpgr.c
  dungeonssrc/decl.c
  flagssrc/decl.c
  plnamesrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  urole

Local Function convert_line()

static void convert_line ( void )
Prototyped in: src/questpgr.c
Calls: An()src/objnam.c
  an()src/objnam.c
  convert_arg()src/questpgr.c
  highc()src/hacklib.c
  makeplural()src/objnam.c
  panic()src/end.c
  s_suffix()src/hacklib.c
  strncmpi()src/hacklib.c
  xcrypt()src/hacklib.c
  strcat(), strcpy(), strlen()
Called by: deliver_by_pline()src/questpgr.c
  deliver_by_window()src/questpgr.c
References Variables: cvt_bufsrc/questpgr.c
  in_linesrc/questpgr.c
  out_linesrc/questpgr.c

Local Function deliver_by_pline()

static void deliver_by_pline ( struct qtmsg* qt_msg )
Prototyped in: src/questpgr.c
Calls: convert_line()src/questpgr.c
  dlb_fgets()src/dlb.c
  pline()src/pline.c
  strlen()
Called by: com_pager()src/questpgr.c
  qt_pager()src/questpgr.c
References Variables: in_linesrc/questpgr.c
  msg_filesrc/questpgr.c
  out_linesrc/questpgr.c

Local Function deliver_by_window()

static void deliver_by_window ( struct qtmsg* qt_msg, int how )
Prototyped in: src/questpgr.c
Calls: convert_line()src/questpgr.c
  dlb_fgets()src/dlb.c
  strlen()
Called by: com_pager()src/questpgr.c
  qt_pager()src/questpgr.c
References Variables: in_linesrc/questpgr.c
  msg_filesrc/questpgr.c
  out_linesrc/questpgr.c
  windowprocs

Local Function guardname()

static const char* guardname ( void )
Prototyped in: src/questpgr.c
Called by: convert_arg()src/questpgr.c
References Variables: monssrc/monst.c
  urole

Local Function homebase()

static const char* homebase ( void )
Prototyped in: src/questpgr.c
Called by: convert_arg()src/questpgr.c
References Variables: urole

Local Function intermed()

static const char* intermed ( void )
Prototyped in: src/questpgr.c
Called by: convert_arg()src/questpgr.c
References Variables: urole

Local Function msg_in()

static struct qtmsg* msg_in ( struct qtmsg* qtm_list, int msgnum )
Prototyped in: src/questpgr.c
Called by: com_pager()src/questpgr.c
  qt_pager()src/questpgr.c

Local Function neminame()

static const char* neminame ( void )
Prototyped in: src/questpgr.c
Calls: sprintf()
Called by: convert_arg()src/questpgr.c
References Variables: monssrc/monst.c
  nambufsrc/questpgr.c
  urole