File src/botl.c


Included Files


Preprocessor definitions

#define MAXCO 160

Global Variable enc_stat

const char* enc_stat[]
Visible in:  src/botl.c
Used in: bot2()src/botl.c

External Variables

hu_stat
extern const char* hu_stat[]

Local Variables

mrank_sz
static int mrank_sz
Used in: bot1()
  max_rank_sz()

Global Function bot()

void bot ( void )
Prototyped in: include/extern.h
Calls: bot1()src/botl.c
  bot2()src/botl.c
Called by: do_break_wand()src/apply.c
  moveloop()src/allmain.c
References Variables: flags

Global Function botl_score()

long botl_score ( void )
Prototyped in: include/extern.h
Calls: deepest_lev_reached(), hidden_gold()
Called by: bot1()src/botl.c
References Variables: u

Global Function describe_level()

int describe_level ( char* buf )
Prototyped in: include/extern.h
Calls: In_quest(), depth(), dunlev(), on_level(), sprintf()
Called by: bot2()src/botl.c
References Variables: dungeon_topology, dungeons, u

Global Function max_rank_sz()

void max_rank_sz ( void )
Prototyped in: include/extern.h
Calls: strlen()
References Variables: mrank_szsrc/botl.c
  urole

Global Function rank_of()

const char* rank_of ( int lev, short monnum, boolean female )
Prototyped in: include/extern.h
Calls: xlev_to_rank()src/botl.c
Called by: rank()src/botl.c
References Variables: roles, urole

Global Function title_to_mon()

int title_to_mon ( const char* str, int* rank_indx, int* title_length )
Prototyped in: include/extern.h
Calls: strlen(), strncmpi()
References Variables: roles

Global Function xlev_to_rank()

int xlev_to_rank ( int xlev )
Prototyped in: include/extern.h
Called by: rank_of()src/botl.c

Local Function bot1()

static void bot1 ( void )
Prototyped in: src/botl.c
Calls: acurr()src/attrib.c
  botl_score()src/botl.c
  rank()src/botl.c
  eos(), sprintf(), strcpy()
Called by: bot()src/botl.c
References Variables: mrank_szsrc/botl.c
  WIN_STATUS, flags, mons, plname, u, windowprocs

Local Function bot2()

static void bot2 ( void )
Prototyped in: src/botl.c
Calls: describe_level()src/botl.c
  dmgtype(), eos(), near_capacity(), sprintf(), strcat(), strcmp()
Called by: bot()src/botl.c
References Variables: enc_statsrc/botl.c
  WIN_STATUS, flags, hu_stat, mons, moves, oc_syms, u, ublindf, windowprocs, youmonst

Local Function rank()

static const char* rank ( void )
Prototyped in: src/botl.c
Calls: rank_of()src/botl.c
Called by: bot1()src/botl.c
References Variables: flags, u, urole