Functions | Variables

botl.c File Reference

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

Functions

STATIC_DCL void NDECL (bot1)
STATIC_DCL void NDECL (bot2)
int xlev_to_rank (int xlev)
const char * rank_of (int lev, short monnum, boolean female)
const char * rank ()
int title_to_mon (char *str, int *rank_indx, int *title_length) const
void max_rank_sz ()
STATIC_OVL void bot1 ()
int describe_level (char *buf)
STATIC_OVL void bot2 ()
void bot ()

Variables

const char * hu_stat []
const char *const enc_stat []
STATIC_OVL NEARDATA int mrank_sz = 0

Function Documentation

void bot (  )

References bot1(), bot2(), flag::botl, flag::botlx, and flags.

Referenced by chest_trap(), do_break_wand(), dopay(), flush_screen(), in_container(), mattacku(), moveloop(), newuhs(), and out_container().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void bot1 (  )

References A_CHA, A_CHAOTIC, A_CON, A_DEX, A_INT, A_NEUTRAL, A_STR, A_WIS, ACURR, ATR_INVERSE, flag::botlx, BUFSZ, curs, eos(), flags, flag::hitpointbar, iflags, MAXCO, permonst::mname, mons, plname, putstr, rank(), Sprintf, STR18, Strcat, Strcpy, align::type, u, you::ualign, uhp(), uhpmax(), you::umonnum, Upolyd, and WIN_STATUS.

Referenced by bot().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void bot2 (  )
int describe_level ( char *  buf )

References depth(), dungeon::dname, d_level::dnum, dungeons, dunlev(), iflags, In_endgame, In_quest(), Is_astralevel, Is_knox, Is_minetown_level, Is_town_level, instance_flags::show_dgn_name, Sprintf, strncmpi(), u, and you::uz.

Referenced by bot2().

Here is the call graph for this function:

Here is the caller graph for this function:

void max_rank_sz (  )

References RoleName::f, RoleName::m, Role::rank, and urole.

Referenced by change_sex(), dorecover(), and u_init().

Here is the caller graph for this function:

STATIC_DCL void NDECL ( bot2   )
STATIC_DCL void NDECL ( bot1   )
const char* rank (  )

References flag::female, flags, rank_of(), Role_switch, u, and you::ulevel.

Referenced by bot1(), prscore(), savebones(), topten(), and tt_oname().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* rank_of ( int  lev,
short  monnum,
boolean  female 
)

References RoleName::f, Role::femalenum, RoleName::m, Role::malenum, Role::name, Role::rank, roles, urole, and xlev_to_rank().

Referenced by convert_arg(), get_mplname(), rank(), and x_monnam().

Here is the call graph for this function:

Here is the caller graph for this function:

int title_to_mon ( char *  str,
int *  rank_indx,
int *  title_length 
) const

References Role::femalenum, m, RoleName::m, Role::malenum, Role::name, NON_PM, roles, and strncmpi().

Referenced by name_to_mon(), and readobjnam().

Here is the call graph for this function:

Here is the caller graph for this function:

int xlev_to_rank ( int  xlev )

Referenced by rank_of().

Here is the caller graph for this function:


Variable Documentation

const char* const enc_stat[]
Initial value:
 {
        "",
        "Burdened",
        "Stressed",
        "Strained",
        "Overtaxed",
        "Overloaded"
}

Referenced by bot2().

const char* hu_stat[]

Referenced by bot2().

STATIC_OVL NEARDATA int mrank_sz = 0