File src/mhitm.c


Included Files


External Variables

notonhead
extern boolean notonhead

Local Variables

vis
static boolean vis
Used in: gazemm()
  gulpmm()
  hitmm()
  mattackm()
  mdamagem()
  missmm()

far_noise
static boolean far_noise
Used in: noises()

noisetime
static long noisetime
Used in: noises()

otmp
static struct obj* otmp
Used in: mattackm()
  mdamagem()
  passivemm()

brief_feeling
static const char brief_feeling[]
Used in: explmm()
  mdamagem()

dieroll
static int dieroll
Used in: mattackm()
  mdamagem()


Global Function fightm()

int fightm ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  mattackm()src/mhitm.c
  itsstuck(), monnear(), pline(), resist(), rn2()
References Variables: bhitpossrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  notonhead

Global Function mattackm()

int mattackm ( struct monst* magr, struct monst* mdef )
Prototyped in: include/extern.h
Calls: a_monnam()src/do_name.c
  dist2()src/hacklib.c
  distmin()src/hacklib.c
  explmm()src/mhitm.c
  gazemm()src/mhitm.c
  gulpmm()src/mhitm.c
  hitmm()src/mhitm.c
  missmm()src/mhitm.c
  mswingsm()src/mhitm.c
  newsym()src/display.c
  passivemm()src/mhitm.c
  find_mac(), hitval(), mon_wield_item(), pline(), possibly_unwield(), rnd(), worm_known()
Called by: dog_move()src/dogmove.c
  fightm()src/mhitm.c
References Variables: dierollsrc/mhitm.c
  flagssrc/decl.c
  monstermovessrc/decl.c
  otmpsrc/mhitm.c
  usrc/decl.c
  ublindfsrc/decl.c
  vissrc/mhitm.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function noattacks()

int noattacks ( struct permonst* ptr )
Prototyped in: include/extern.h
Called by: monster_nearby()src/hack.c

Global Function sleep_monst()

int sleep_monst ( struct monst* mon, int amt, int how )
Prototyped in: include/extern.h
Calls: shieldeff()src/display.c
  resist()
Called by: mdamagem()src/mhitm.c

Global Function slept_monst()

void slept_monst ( struct monst* mon )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  s_suffix()src/hacklib.c
  pline(), sticks(), unstuck()
Called by: mdamagem()src/mhitm.c
References Variables: usrc/decl.c
  youmonstsrc/decl.c

Local Function explmm()

static int explmm ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  mdamagem()src/mhitm.c
  noises()src/mhitm.c
  You(), mondead(), pline()
Called by: mattackm()src/mhitm.c
References Variables: brief_feelingsrc/mhitm.c
  viz_arraysrc/decl.c

Local Function gazemm()

static int gazemm ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  mdamagem()src/mhitm.c
  mon_nam()src/do_name.c
  pline(), sprintf()
Called by: mattackm()src/mhitm.c
References Variables: vissrc/mhitm.c

Local Function gulpmm()

static int gulpmm ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  mdamagem()src/mhitm.c
  mon_nam()src/do_name.c
  newsym()src/display.c
  snuff_lit()src/apply.c
  place_monster(), pline(), sprintf()
Called by: mattackm()src/mhitm.c
References Variables: levelsrc/decl.c
  vissrc/mhitm.c
  viz_arraysrc/decl.c

Local Function hitmm()

static int hitmm ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  dist2()src/hacklib.c
  map_invisible()src/display.c
  mdamagem()src/mhitm.c
  mon_nam()src/do_name.c
  mon_nam_too()src/mhitm.c
  noises()src/mhitm.c
  s_suffix()src/hacklib.c
  could_seduce(), pline(), seemimic(), sprintf(), strcpy(), worm_known()
Called by: mattackm()src/mhitm.c
References Variables: flagssrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  vissrc/mhitm.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Local Function mdamagem()

static int mdamagem ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  artifact_hit()src/artifact.c
  dist2()src/hacklib.c
  erode_armor()src/do_wear.c
  grow_up()src/makemon.c
  mon_nam()src/do_name.c
  mrustm()src/mhitm.c
  night()src/hacklib.c
  s_suffix()src/hacklib.c
  shieldeff()src/display.c
  sleep_monst()src/mhitm.c
  slept_monst()src/mhitm.c
  x_monnam()src/do_name.c
  You(), You_hear(), add_to_minv(), can_blnd(), d(), destroy_mitem(), dismount_steed(), dmgval(), doname(), erode_weapon(), golemeffects(), hurtmarmor(), m_useup(), mlifesaver(), mon_adjust_speed(), mon_to_stone(), mondied(), monkilled(), monstone(), mpoisons_subj(), mselftouch(), munstone(), newcham(), obj_extract_self(), place_monster(), pline(), pline_The(), poly_when_stoned(), possibly_unwield(), pronoun_gender(), resists_drli(), rloc(), rn2(), rnd(), strcpy(), tele_restrict(), update_mon_intrinsics(), verbalize(), were_change(), which_armor(), worm_known()
Called by: explmm()src/mhitm.c
  gazemm()src/mhitm.c
  gulpmm()src/mhitm.c
  hitmm()src/mhitm.c
References Variables: brief_feelingsrc/mhitm.c
  dierollsrc/mhitm.c
  flagssrc/decl.c
  hissrc/decl.c
  levelsrc/decl.c
  otmpsrc/mhitm.c
  usrc/decl.c
  ublindfsrc/decl.c
  vissrc/mhitm.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons, notonhead

Local Function missmm()

static void missmm ( struct monst* magr, struct monst* mdef, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  dist2()src/hacklib.c
  map_invisible()src/display.c
  mon_nam_too()src/mhitm.c
  noises()src/mhitm.c
  could_seduce(), pline(), seemimic(), sprintf(), worm_known()
Called by: mattackm()src/mhitm.c
References Variables: flagssrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  vissrc/mhitm.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Local Function mon_nam_too()

static char* mon_nam_too ( char* outbuf, struct monst* mon, struct monst* other_mon )
Prototyped in: src/mhitm.c
Calls: mon_nam()src/do_name.c
  pronoun_gender(), strcpy()
Called by: hitmm()src/mhitm.c
  missmm()src/mhitm.c

Local Function mrustm()

static void mrustm ( struct monst* magr, struct monst* mdef, struct obj* obj )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  s_suffix()src/hacklib.c
  aobjnam(), dmgtype(), pline(), rn2()
Called by: mdamagem()src/mhitm.c
References Variables: flagssrc/decl.c
  viz_arraysrc/decl.c
  objects

Local Function mswingsm()

static void mswingsm ( struct monst* magr, struct monst* mdef, struct obj* otemp )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  mon_nam()src/do_name.c
  pline(), pronoun_gender(), strcpy(), xname()
Called by: mattackm()src/mhitm.c
References Variables: flagssrc/decl.c
  hissrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  objects

Local Function noises()

static void noises ( struct monst* magr, struct attack* mattk )
Prototyped in: src/mhitm.c
Calls: dist2()src/hacklib.c
  You_hear()
Called by: explmm()src/mhitm.c
  hitmm()src/mhitm.c
  missmm()src/mhitm.c
References Variables: far_noisesrc/mhitm.c
  flagssrc/decl.c
  movessrc/decl.c
  noisetimesrc/mhitm.c
  usrc/decl.c

Local Function passivemm()

static int passivemm ( struct monst* magr, struct monst* mdef, boolean mhit, int mdead )
Prototyped in: src/mhitm.c
Calls: Monnam()src/do_name.c
  mon_nam()src/do_name.c
  s_suffix()src/hacklib.c
  d(), drain_item(), golemeffects(), mon_reflects(), monkilled(), pline(), rn2(), split_mon(), sprintf(), strcpy(), worm_known()
Called by: mattackm()src/mhitm.c
References Variables: otmpsrc/mhitm.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons