File src/wizard.c


Included Files


Preprocessor definitions

#define STRAT( w, x, y, typ )

#define M_Wants( mask )


Global Variable random_insult

const char* random_insult[]
Visible in:  src/wizard.c
Used in: cuss()src/wizard.c

Global Variable random_malediction

const char* random_malediction[]
Visible in:  src/wizard.c
Used in: cuss()src/wizard.c

Local Variables

nasties
static const int nasties[]
Used in: pick_nasty()

wizapp
static const unsigned wizapp[]
Used in: clonewiz()


Global Function aggravate()

void aggravate ( void )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: castmu()src/mcastu.c
  cursed_book()src/spell.c
  domonability()src/cmd.c
  domonnoise()src/sounds.c
  dosit()src/sit.c
  doturn()src/pray.c
  intervene()src/wizard.c
  m_respond()src/mon.c
  peffects()src/potion.c
References Variables: levelsrc/decl.c

Global Function amulet()

void amulet ( void )
Prototyped in: include/extern.h
Calls: The()src/objnam.c
  You()src/pline.c
  dist2()src/hacklib.c
  pline()src/pline.c
  rn2()src/rnd.c
  xname()src/objnam.c
Called by: moveloop()src/allmain.c
References Variables: flagssrc/decl.c
  ftrapsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uamulsrc/decl.c
  uwepsrc/decl.c

Global Function clonewiz()

void clonewiz ( void )
Prototyped in: include/extern.h
Calls: add_to_minv()src/mkobj.c
  makemon()src/makemon.c
  mksobj()src/mkobj.c
  newsym()src/display.c
  rn2()src/rnd.c
Called by: castmu()src/mcastu.c
References Variables: monssrc/monst.c
  usrc/decl.c
  wizappsrc/wizard.c

Global Function cuss()

void cuss ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  com_pager()src/questpgr.c
  dmgtype()src/mondata.c
  pline()src/pline.c
  rn2()src/rnd.c
  verbalize()src/pline.c
Called by: dochug()src/monmove.c
  domonnoise()src/sounds.c
References Variables: random_insultsrc/wizard.c
  random_maledictionsrc/wizard.c
  usrc/decl.c
  youmonstsrc/decl.c

Global Function intervene()

void intervene ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  You_feel()src/pline.c
  aggravate()src/wizard.c
  hcolor()src/do_name.c
  nasty()src/wizard.c
  on_level()src/dungeon.c
  resurrect()src/wizard.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  rndcurse()src/sit.c
Called by: moveloop()src/allmain.c
References Variables: c_color_namessrc/decl.c
  dungeon_topologysrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function mon_has_amulet()

int mon_has_amulet ( struct monst* mtmp )
Prototyped in: include/extern.h
Called by: find_defensive()src/muse.c
  keepdogs()src/dog.c
  levl_follower()src/mondata.c
  mlevel_tele_trap()src/teleport.c
  resurrect()src/wizard.c
  tactics()src/wizard.c
  use_defensive()src/muse.c

Global Function mon_has_special()

int mon_has_special ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: is_quest_artifact()src/questpgr.c
Called by: use_defensive()src/muse.c

Global Function nasty()

void nasty ( struct monst* mcast )
Prototyped in: include/extern.h
Calls: In_hell()src/dungeon.c
  makemon()src/makemon.c
  msummon()src/minion.c
  pick_nasty()src/wizard.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  set_malign()src/makemon.c
  sgn()src/hacklib.c
Called by: castmu()src/mcastu.c
  intervene()src/wizard.c
References Variables: monssrc/monst.c
  usrc/decl.c

Global Function pick_nasty()

int pick_nasty ( void )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: nasty()src/wizard.c
  select_newcham_form()src/mon.c
References Variables: nastiessrc/wizard.c

Global Function resurrect()

void resurrect ( void )
Prototyped in: include/extern.h
Calls: makemon()src/makemon.c
  mon_arrive()src/dog.c
  mon_catchup_elapsed_time()src/dog.c
  mon_has_amulet()src/wizard.c
  pline()src/pline.c
  rn2()src/rnd.c
  set_malign()src/makemon.c
  verbalize()src/pline.c
Called by: goto_level()src/do.c
  intervene()src/wizard.c
References Variables: flagssrc/decl.c
  migrating_monssrc/decl.c
  monssrc/monst.c
  monstermovessrc/decl.c
  usrc/decl.c

Global Function tactics()

int tactics ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: In_W_tower()src/dungeon.c
  Monnam()src/do_name.c
  dist2()src/hacklib.c
  distant_name()src/objnam.c
  doname()src/objnam.c
  mnearto()src/mon.c
  mnexto()src/mon.c
  mon_has_amulet()src/wizard.c
  mpickobj()src/steal.c
  obj_extract_self()src/mkobj.c
  on_ground()src/wizard.c
  pline()src/pline.c
  rloc()src/teleport.c
  rloc_to()src/teleport.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  strategy()src/wizard.c
  which_arti()src/wizard.c
Called by: dochug()src/monmove.c
References Functions: doname()src/objnam.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  upstairsrc/decl.c
  viz_arraysrc/decl.c

Global Function wizdead()

void wizdead ( void )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: mondead()src/mon.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Local Function mon_has_arti()

static boolean mon_has_arti ( struct monst* mtmp, short otyp )
Prototyped in: src/wizard.c
Calls: is_quest_artifact()src/questpgr.c
Called by: other_mon_has_arti()src/wizard.c
  target_on()src/wizard.c

Local Function on_ground()

static struct obj* on_ground ( short otyp )
Prototyped in: src/wizard.c
Calls: is_quest_artifact()src/questpgr.c
Called by: tactics()src/wizard.c
  target_on()src/wizard.c
References Variables: levelsrc/decl.c

Local Function other_mon_has_arti()

static struct monst* other_mon_has_arti ( struct monst* mtmp, short otyp )
Prototyped in: src/wizard.c
Calls: mon_has_arti()src/wizard.c
Called by: target_on()src/wizard.c
References Variables: levelsrc/decl.c

Local Function strategy()

static long strategy ( struct monst* mtmp )
Prototyped in: src/wizard.c
Calls: target_on()src/wizard.c
Called by: tactics()src/wizard.c
References Variables: flagssrc/decl.c
  monssrc/monst.c
  usrc/decl.c

Local Function target_on()

static long target_on ( int mask, struct monst* mtmp )
Prototyped in: src/wizard.c
Calls: mon_has_arti()src/wizard.c
  on_ground()src/wizard.c
  other_mon_has_arti()src/wizard.c
  which_arti()src/wizard.c
  you_have()src/wizard.c
Called by: strategy()src/wizard.c
References Variables: usrc/decl.c

Local Function which_arti()

static short which_arti ( int mask )
Prototyped in: src/wizard.c
Called by: tactics()src/wizard.c
  target_on()src/wizard.c

Local Function you_have()

static boolean you_have ( int mask )
Prototyped in: src/wizard.c
Called by: target_on()src/wizard.c
References Variables: usrc/decl.c