#include "hack.h"
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 |
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().
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().
STATIC_OVL void bot2 | ( | ) |
References Blind, flag::botlx, COIN_CLASS, Confusion, curs, describe_level(), enc_stat, eos(), flags, Hallucination, hu_stat, iflags, invent, MAXCO, you::mh, you::mhmax, permonst::mlevel, mons, moves, near_capacity(), oc_syms, putstr, Sick, SICK_NONVOMITABLE, SICK_VOMITABLE, Slimed, Sprintf, Strcat, Stunned, flag::time, u, you::uac, you::uen, you::uenmax, you::uexp, you::ugold, you::uhp, you::uhpmax, you::uhs, you::ulevel, you::umonnum, UNENCUMBERED, Upolyd, and WIN_STATUS.
Referenced by bot().
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().
void max_rank_sz | ( | ) |
References RoleName::f, RoleName::m, Role::rank, and urole.
Referenced by change_sex(), dorecover(), and u_init().
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().
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().
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().
int xlev_to_rank | ( | int | xlev ) |
const char* const enc_stat[] |
{ "", "Burdened", "Stressed", "Strained", "Overtaxed", "Overloaded" }
Referenced by bot2().
STATIC_OVL NEARDATA int mrank_sz = 0 |