Defines | Functions | Variables

mcastu.c File Reference

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

Defines

#define MGC_PSI_BOLT   0
#define MGC_CURE_SELF   1
#define MGC_HASTE_SELF   2
#define MGC_STUN_YOU   3
#define MGC_DISAPPEAR   4
#define MGC_WEAKEN_YOU   5
#define MGC_DESTRY_ARMR   6
#define MGC_CURSE_ITEMS   7
#define MGC_AGGRAVATION   8
#define MGC_SUMMON_MONS   9
#define MGC_CLONE_WIZ   10
#define MGC_DEATH_TOUCH   11
#define CLC_OPEN_WOUNDS   0
#define CLC_CURE_SELF   1
#define CLC_CONFUSE_YOU   2
#define CLC_PARALYZE   3
#define CLC_BLIND_YOU   4
#define CLC_INSECTS   5
#define CLC_CURSE_ITEMS   6
#define CLC_LIGHTNING   7
#define CLC_FIRE_PILLAR   8
#define CLC_GEYSER   9
#define ad_to_typ(k)   (10 + (int)k - 1)

Functions

STATIC_DCL void FDECL (cursetxt,(struct monst *, BOOLEAN_P))
STATIC_DCL int FDECL (choose_magic_spell,(int))
STATIC_DCL int FDECL (choose_clerical_spell,(int))
STATIC_DCL void FDECL (cast_wizard_spell,(struct monst *, int, int))
STATIC_DCL void FDECL (cast_cleric_spell,(struct monst *, int, int))
STATIC_DCL boolean FDECL (is_undirected_spell,(unsigned int, int))
STATIC_DCL boolean FDECL (spell_would_be_useless,(struct monst *, unsigned int, int))
STATIC_OVL void cursetxt (struct monst *mtmp, boolean undirected)
STATIC_OVL int choose_magic_spell (int spellval)
STATIC_OVL int choose_clerical_spell (int spellnum)
int castmu (struct monst *mtmp, struct attack *mattk, boolean thinks_it_foundyou, boolean foundyou)
STATIC_OVL void cast_wizard_spell (struct monst *mtmp, int dmg, int spellnum)
STATIC_OVL void cast_cleric_spell (struct monst *mtmp, int dmg, int spellnum)
STATIC_DCL boolean is_undirected_spell (unsigned int adtyp, int spellnum)
STATIC_DCL boolean spell_would_be_useless (struct monst *mtmp, unsigned int adtyp, int spellnum)
int buzzmu (struct monst *mtmp, struct attack *mattk)

Variables

const char *const flash_types []

Define Documentation

#define ad_to_typ (   k )    (10 + (int)k - 1)

Referenced by buzzmu().

#define CLC_BLIND_YOU   4
#define CLC_CONFUSE_YOU   2
#define CLC_CURE_SELF   1
#define CLC_CURSE_ITEMS   6
#define CLC_FIRE_PILLAR   8
#define CLC_GEYSER   9
#define CLC_INSECTS   5
#define CLC_LIGHTNING   7
#define CLC_OPEN_WOUNDS   0
#define CLC_PARALYZE   3
#define MGC_AGGRAVATION   8
#define MGC_CLONE_WIZ   10
#define MGC_CURE_SELF   1
#define MGC_CURSE_ITEMS   7
#define MGC_DEATH_TOUCH   11
#define MGC_DESTRY_ARMR   6
#define MGC_DISAPPEAR   4
#define MGC_HASTE_SELF   2
#define MGC_PSI_BOLT   0
#define MGC_STUN_YOU   3
#define MGC_SUMMON_MONS   9
#define MGC_WEAKEN_YOU   5

Function Documentation

int buzzmu ( struct monst mtmp,
struct attack mattk 
)

References AD_SPC2, ad_to_typ, buzz(), canseemon, cursetxt(), FALSE, lined_up(), Monnam(), nomul(), pline(), rn2(), sgn(), tbx, and tby.

Referenced by mattacku().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void cast_cleric_spell ( struct monst mtmp,
int  dmg,
int  spellnum 
)
STATIC_OVL void cast_wizard_spell ( struct monst mtmp,
int  dmg,
int  spellnum 
)
int castmu ( struct monst mtmp,
struct attack mattk,
boolean  thinks_it_foundyou,
boolean  foundyou 
)
STATIC_OVL int choose_clerical_spell ( int  spellnum )

References CLC_BLIND_YOU, CLC_CONFUSE_YOU, CLC_CURE_SELF, CLC_CURSE_ITEMS, CLC_FIRE_PILLAR, CLC_GEYSER, CLC_INSECTS, CLC_LIGHTNING, CLC_OPEN_WOUNDS, and CLC_PARALYZE.

Referenced by castmu().

Here is the caller graph for this function:

STATIC_OVL int choose_magic_spell ( int  spellval )
STATIC_OVL void cursetxt ( struct monst mtmp,
boolean  undirected 
)

References canseemon, couldsee, Displaced, flags, Invis, M_AP_OBJECT, monst::m_ap_type, monst::mappearance, Monnam(), moves, perceives, pline(), rn2(), flag::soundok, STRANGE_OBJECT, u, you::ux, you::uy, and youmonst.

Referenced by buzzmu(), and castmu().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void FDECL ( cast_wizard_spell  ,
(struct monst *, int, int)   
)
STATIC_DCL void FDECL ( cursetxt  ,
(struct monst *, BOOLEAN_P)   
)
STATIC_DCL int FDECL ( choose_magic_spell  ,
(int)   
)
STATIC_DCL boolean FDECL ( spell_would_be_useless  ,
(struct monst *, unsigned int, int)   
)
STATIC_DCL int FDECL ( choose_clerical_spell  ,
(int)   
)
STATIC_DCL void FDECL ( cast_cleric_spell  ,
(struct monst *, int, int)   
)
STATIC_DCL boolean FDECL ( is_undirected_spell  ,
(unsigned int, int)   
)
STATIC_DCL boolean is_undirected_spell ( unsigned int  adtyp,
int  spellnum 
)
STATIC_DCL boolean spell_would_be_useless ( struct monst mtmp,
unsigned int  adtyp,
int  spellnum 
)

Variable Documentation

const char* const flash_types[]