Functions | Variables

mhitm.c File Reference

#include "hack.h"
#include "artifact.h"
#include "edog.h"
Include dependency graph for mhitm.c:

Functions

STATIC_DCL char * FDECL (mon_nam_too,(char *, struct monst *, struct monst *))
STATIC_DCL void FDECL (mrustm,(struct monst *, struct monst *, struct obj *))
STATIC_DCL int FDECL (hitmm,(struct monst *, struct monst *, struct attack *))
STATIC_DCL int FDECL (gazemm,(struct monst *, struct monst *, struct attack *))
STATIC_DCL int FDECL (gulpmm,(struct monst *, struct monst *, struct attack *))
STATIC_DCL int FDECL (explmm,(struct monst *, struct monst *, struct attack *))
STATIC_DCL int FDECL (mdamagem,(struct monst *, struct monst *, struct attack *))
STATIC_DCL void FDECL (mswingsm,(struct monst *, struct monst *, struct obj *))
STATIC_DCL void FDECL (noises,(struct monst *, struct attack *))
STATIC_DCL void FDECL (missmm,(struct monst *, struct monst *, struct attack *))
STATIC_DCL int FDECL (passivemm,(struct monst *, struct monst *, BOOLEAN_P, int))
STATIC_OVL char * mon_nam_too (char *outbuf, struct monst *mon, struct monst *other_mon)
STATIC_OVL void noises (struct monst *magr, struct attack *mattk)
STATIC_OVL void missmm (struct monst *magr, struct monst *mdef, struct attack *mattk)
int fightm (struct monst *mtmp)
int mattackm (struct monst *magr, struct monst *mdef)
STATIC_OVL int hitmm (struct monst *magr, struct monst *mdef, struct attack *mattk)
STATIC_OVL int gazemm (struct monst *magr, struct monst *mdef, struct attack *mattk)
STATIC_OVL int gulpmm (struct monst *magr, struct monst *mdef, struct attack *mattk)
STATIC_OVL int explmm (struct monst *magr, struct monst *mdef, struct attack *mattk)
STATIC_OVL int mdamagem (struct monst *magr, struct monst *mdef, struct attack *mattk)
int noattacks (struct permonst *ptr)
int sleep_monst (struct monst *mon, int amt, int how)
void slept_monst (struct monst *mon)
STATIC_OVL void mrustm (struct monst *magr, struct monst *mdef, struct obj *obj)
STATIC_OVL void mswingsm (struct monst *magr, struct monst *mdef, struct obj *otemp)
STATIC_OVL int passivemm (struct monst *magr, struct monst *mdef, boolean mhit, int mdead)
long attk_protection (int aatyp)

Variables

boolean notonhead
static NEARDATA boolean vis
static NEARDATA boolean far_noise
static NEARDATA long noisetime
static NEARDATA struct objotmp
static const char brief_feeling [] = "have a %s feeling for a moment, then it passes."
static int dieroll

Function Documentation

long attk_protection ( int  aatyp )

References AT_BITE, AT_BOOM, AT_BREA, AT_BUTT, AT_CLAW, AT_ENGL, AT_EXPL, AT_GAZE, AT_HUGS, AT_KICK, AT_MAGC, AT_NONE, AT_SPIT, AT_STNG, AT_TENT, AT_TUCH, AT_WEAP, W_ARMC, W_ARMF, W_ARMG, and W_ARMH.

Referenced by mdamagem(), passive(), and passiveum().

Here is the caller graph for this function:

STATIC_OVL int explmm ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References brief_feeling, cansee, mdamagem(), MM_AGR_DIED, MM_MISS, mondead(), Monnam(), noises(), and pline().

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL char* FDECL ( mon_nam_too  ,
(char *, struct monst *, struct monst *)   
)
STATIC_DCL int FDECL ( gazemm  ,
(struct monst *, struct monst *, struct attack *)   
)
STATIC_DCL void FDECL ( mswingsm  ,
(struct monst *, struct monst *, struct obj *)   
)
STATIC_DCL void FDECL ( noises  ,
(struct monst *, struct attack *)   
)
STATIC_DCL void FDECL ( mrustm  ,
(struct monst *, struct monst *, struct obj *)   
)
STATIC_DCL int FDECL ( gulpmm  ,
(struct monst *, struct monst *, struct attack *)   
)
STATIC_DCL void FDECL ( missmm  ,
(struct monst *, struct monst *, struct attack *)   
)
STATIC_DCL int FDECL ( passivemm  ,
(struct monst *, struct monst *, BOOLEAN_P, int)   
)
STATIC_DCL int FDECL ( explmm  ,
(struct monst *, struct monst *, struct attack *)   
)
STATIC_DCL int FDECL ( hitmm  ,
(struct monst *, struct monst *, struct attack *)   
)
STATIC_DCL int FDECL ( mdamagem  ,
(struct monst *, struct monst *, struct attack *)   
)
int fightm ( struct monst mtmp )

References bhitpos, DEADMONSTER, fmon, itsstuck(), mattackm(), MM_AGR_DIED, MM_DEF_DIED, MM_HIT, mon, Monnam(), monnear(), monst::movement, monst::mx, monst::my, monst::nmon, NORMAL_SPEED, notonhead, pline(), resist(), RING_CLASS, rn2(), u, you::ustuck, nhcoord::x, and nhcoord::y.

Referenced by movemon().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int gazemm ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References BUFSZ, canseemon, mdamagem(), mhis, MM_AGR_DIED, MM_MISS, mon_nam(), mon_reflects(), Monnam(), mons, monstone(), perceives, pline(), PM_MEDUSA, Sprintf, and vis.

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int gulpmm ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References BUFSZ, cansee, mdamagem(), MM_AGR_DIED, MM_DEF_DIED, MM_MISS, mon_nam(), Monnam(), MZ_HUGE, newsym(), obj::nobj, pline(), remove_monster(), snuff_lit(), Sprintf, and vis.

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int hitmm ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References attack::aatyp, AT_BITE, AT_BUTT, AT_HUGS, AT_STNG, AT_TENT, AT_TUCH, BUFSZ, canspotmon, could_seduce(), map_invisible(), mdamagem(), mon_nam(), mon_nam_too(), Monnam(), noises(), pline(), s_suffix(), seemimic(), Sprintf, Strcpy, u, you::ustuck, and vis.

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

int mattackm ( struct monst magr,
struct monst mdef 
)
STATIC_OVL int mdamagem ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References AD_ACID, AD_BLND, AD_COLD, AD_CONF, AD_CORR, AD_CURS, AD_DCAY, AD_DGST, AD_DISN, AD_DRCO, AD_DRDX, AD_DRIN, AD_DRLI, AD_DRST, AD_ELEC, AD_ENCH, AD_FIRE, AD_HALU, AD_HEAD, AD_HEAL, AD_LEGS, AD_PHYS, AD_PLYS, AD_RUST, AD_SEDU, AD_SGLD, AD_SITM, AD_SLEE, AD_SLIM, AD_SLOW, AD_SSEX, AD_STCK, AD_STON, AD_STUN, AD_TLPT, AD_WERE, AD_WRAP, add_to_minv(), amorphous, ARTICLE_THE, artifact_hit(), AT_BITE, AT_KICK, AT_WEAP, attk_protection(), brief_feeling, BUFSZ, can_blnd(), canseemon, canspotmon, CHAM_ORDINARY, CORPSE, corpse_chance(), obj::corpsenm, d(), dealloc_obj(), destroy_mitem(), distant_name(), dmgval(), dog_nutrition(), doname(), EDOG, erode_armor(), erode_obj(), FALSE, flags, flaming, G_NOCORPSE, golemeffects(), grow_up(), has_blood, has_head, haseyes, hurtmarmor(), is_rider, is_vampire, is_were, m_at, m_useup(), magic_negation(), makeplural(), mbodypart(), mhis, mindless, mksobj(), mlifesaver(), MM_AGR_DIED, MM_DEF_DIED, MM_HIT, MM_MISS, mon_adjust_speed(), mon_nam(), mon_to_stone(), MON_WEP, mondied(), monkilled(), Monnam(), mons, monsndx(), monstone(), mpoisons_subj(), mrustm(), mselftouch(), MSLOW, munstone(), mvitals::mvflags, NECK, newcham(), night(), obj::nobj, noncorporeal, notonhead, obj::oartifact, obj_extract_self(), on_fire(), oresist_disintegration, obj::otyp, obj::owornmask, obj::owt, pa, pline(), PM_CLAY_GOLEM, PM_FAMINE, PM_GREEN_SLIME, PM_GREMLIN, PM_IRON_GOLEM, PM_LEATHER_GOLEM, PM_NURSE, PM_PAPER_GOLEM, PM_PESTILENCE, PM_PURPLE_WORM, PM_SHRIEKER, PM_STRAW_GOLEM, PM_WOOD_GOLEM, PM_WRAITH, poly_when_stoned(), possibly_unwield(), POTION_CLASS, remove_monster(), resists_acid, resists_cold, resists_drli(), resists_elec, resists_fire, resists_poison, resists_ston, RING_CLASS, rloc(), rn1, rn2(), rnd(), S_HUMAN, S_JABBERWOCK, S_NYMPH, s_suffix(), SCROLL_CLASS, setmnotwielded(), shieldeff(), sleep_monst(), slept_monst(), flag::soundok, SPBOOK_CLASS, stagger(), STRAT_WAITFORU, Strcpy, tele_restrict(), thick_skinned, touch_petrifies, TRUE, u, update_mon_intrinsics(), flag::verbose, vis, W_ARM, W_ARMC, W_ARMG, W_ARMH, W_ARMS, W_WEP, WAND_CLASS, weight(), were_change(), which_armor(), x_monnam(), and xname().

Referenced by explmm(), gazemm(), gulpmm(), and hitmm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void missmm ( struct monst magr,
struct monst mdef,
struct attack mattk 
)

References BUFSZ, canspotmon, could_seduce(), map_invisible(), mon_nam_too(), Monnam(), noises(), pline(), seemimic(), Sprintf, and vis.

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL char* mon_nam_too ( char *  outbuf,
struct monst mon,
struct monst other_mon 
)

References mon_nam(), pronoun_gender(), and Strcpy.

Referenced by hitmm(), and missmm().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void mrustm ( struct monst magr,
struct monst mdef,
struct obj obj 
)

References AD_CORR, AD_RUST, aobjnam(), cansee, dmgtype(), FALSE, flags, is_corrodeable, is_rustprone, MAX_ERODE, Monnam(), pline(), rn2(), s_suffix(), TRUE, and flag::verbose.

Referenced by mdamagem().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void mswingsm ( struct monst magr,
struct monst mdef,
struct obj otemp 
)

References Blind, BUFSZ, flags, mhis, mon_nam(), mon_visible, Monnam(), objects, PIERCE, pline(), singular(), Strcpy, flag::verbose, and xname().

Referenced by mattackm().

Here is the call graph for this function:

Here is the caller graph for this function:

int noattacks ( struct permonst ptr )

References NATTK.

Referenced by attack(), dochugw(), and monster_nearby().

Here is the caller graph for this function:

STATIC_OVL void noises ( struct monst magr,
struct attack mattk 
)

References AT_EXPL, distu, far_noise, flags, moves, noisetime, and flag::soundok.

Referenced by explmm(), hitmm(), and missmm().

Here is the caller graph for this function:

STATIC_OVL int passivemm ( struct monst magr,
struct monst mdef,
boolean  mhit,
int  mdead 
)
int sleep_monst ( struct monst mon,
int  amt,
int  how 
)

References if(), min, NOTELL, resist(), resists_sleep, and shieldeff().

Referenced by bhitm(), damageum(), mdamagem(), potionhit(), put_monsters_to_sleep(), and zhitm().

Here is the call graph for this function:

Here is the caller graph for this function:

void slept_monst ( struct monst mon )

References monst::data, Monnam(), pline(), s_suffix(), sticks(), u, unstuck(), you::ustuck, and youmonst.

Referenced by bhitm(), buzz(), damageum(), mdamagem(), potionhit(), and put_monsters_to_sleep().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char brief_feeling[] = "have a %s feeling for a moment, then it passes." [static]

Referenced by explmm(), and mdamagem().

int dieroll [static]

Referenced by mattackm().

NEARDATA boolean far_noise

Referenced by noises().

NEARDATA long noisetime [static]

Referenced by noises().

NEARDATA struct obj* otmp [static]
NEARDATA boolean vis [static]