Defines | Functions

priest.c File Reference

#include "hack.h"
#include "mfndpos.h"
#include "eshk.h"
#include "epri.h"
#include "emin.h"
Include dependency graph for priest.c:

Defines

#define ALGN_SINNED   (-4)
#define GDIST(x, y)   (dist2(x,y,gx,gy))

Functions

STATIC_DCL boolean FDECL (histemple_at,(struct monst *, XCHAR_P, XCHAR_P))
STATIC_DCL boolean FDECL (has_shrine,(struct monst *))
int move_special (struct monst *mtmp, boolean in_his_shop, schar appr, boolean uondoor, boolean avoid, xchar omx, xchar omy, xchar gx, xchar gy)
char temple_occupied (char *array)
STATIC_OVL boolean histemple_at (struct monst *priest, xchar x, xchar y)
int pri_move (struct monst *priest)
void priestini (d_level *lvl, struct mkroom *sroom, int sx, int sy, boolean sanctum)
char * priestname (struct monst *mon, char *pname)
boolean p_coaligned (struct monst *priest)
STATIC_OVL boolean has_shrine (struct monst *pri)
struct monstfindpriest (char roomno)
void intemple (int roomno)
void priest_talk (struct monst *priest)
struct monstmk_roamer (struct permonst *ptr, aligntyp alignment, xchar x, xchar y, boolean peaceful)
void reset_hostility (struct monst *roamer)
boolean in_your_sanctuary (struct monst *mon, xchar x, xchar y)
void ghod_hitsu (struct monst *priest)
void angry_priest ()
void clearpriests ()
void restpriest (struct monst *mtmp, boolean ghostly)

Define Documentation

#define ALGN_SINNED   (-4)
#define GDIST (   x,
 
)    (dist2(x,y,gx,gy))

Function Documentation

void angry_priest (  )

References AM_MASK, Amask2align, EPRI, findpriest(), IS_ALTAR, levl, temple_occupied(), rm::typ, u, you::urooms, and wakeup().

Referenced by breakobj(), dig(), and dosacrifice().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearpriests (  )

References DEADMONSTER, EPRI, fmon, mongone(), monst::nmon, on_level(), u, and you::uz.

Referenced by done().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL boolean FDECL ( histemple_at  ,
(struct monst *, XCHAR_P, XCHAR_P)   
)
STATIC_DCL boolean FDECL ( has_shrine  ,
(struct monst *)   
)
struct monst* findpriest ( char  roomno ) [read]

References DEADMONSTER, EPRI, fmon, histemple_at(), monst::mx, monst::my, and monst::nmon.

Referenced by angry_priest(), dosacrifice(), in_your_sanctuary(), and intemple().

Here is the call graph for this function:

Here is the caller graph for this function:

void ghod_hitsu ( struct monst priest )

References a_gname_at(), A_WIS, AD_ELEC, buzz(), EPRI, exercise(), FALSE, has_shrine(), mkroom::hx, mkroom::hy, IS_DOOR, levl, linedup(), mkroom::lx, mkroom::ly, pline(), rn2(), ROOMOFFSET, rooms, s_suffix(), sgn(), tbx, tby, temple_occupied(), u, you::urooms, you::ux, and you::uy.

Referenced by hmon(), and zap_over_floor().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean has_shrine ( struct monst pri )

References AM_SHRINE, Amask2align, EPRI, FALSE, IS_ALTAR, levl, and rm::typ.

Referenced by ghod_hitsu(), in_your_sanctuary(), intemple(), and priest_talk().

Here is the caller graph for this function:

STATIC_OVL boolean histemple_at ( struct monst priest,
xchar  x,
xchar  y 
)

References EPRI, in_rooms(), on_level(), TEMPLE, u, and you::uz.

Referenced by findpriest(), pri_move(), and priest_talk().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean in_your_sanctuary ( struct monst mon,
xchar  x,
xchar  y 
)

References ALGN_SINNED, FALSE, findpriest(), has_shrine(), in_rooms(), is_minion, is_rider, p_coaligned(), align::record, TEMPLE, temple_occupied(), u, you::ualign, and you::urooms.

Referenced by distfleeck(), find_offensive(), and mfndpos().

Here is the call graph for this function:

Here is the caller graph for this function:

void intemple ( int  roomno )
struct monst* mk_roamer ( struct permonst ptr,
aligntyp  alignment,
xchar  x,
xchar  y,
boolean  peaceful 
) [read]

References EPRI, FALSE, m_at, makemon(), MON_AT, mons, monst::mtrapseen, NO_MM_FLAGS, PM_ALIGNED_PRIEST, PM_ANGEL, rloc(), set_malign(), TRUE, align::type, u, and you::ualign.

Referenced by create_monster(), dog_move(), and final_level().

Here is the call graph for this function:

Here is the caller graph for this function:

int move_special ( struct monst mtmp,
boolean  in_his_shop,
schar  appr,
boolean  uondoor,
boolean  avoid,
xchar  omx,
xchar  omy,
xchar  gx,
xchar  gy 
)
boolean p_coaligned ( struct monst priest )

References EPRI, align::type, u, and you::ualign.

Referenced by dosacrifice(), in_your_sanctuary(), intemple(), priest_talk(), priestini(), setmangry(), and xkilled().

Here is the caller graph for this function:

int pri_move ( struct monst priest )

References Conflict, Displaced, EPRI, FALSE, gx, gy, histemple_at(), index, Invis, m_canseeu, mattacku(), mon_nam(), monnear(), move_special(), resist(), RING_CLASS, rn1, TRUE, u, you::urooms, you::ux, and you::uy.

Referenced by m_move().

Here is the call graph for this function:

Here is the caller graph for this function:

void priest_talk ( struct monst priest )
void priestini ( d_level lvl,
struct mkroom sroom,
int  sx,
int  sy,
boolean  sanctum 
)
char* priestname ( struct monst mon,
char *  pname 
)

References distu, EMIN, EPRI, Hallucination, halu_gname(), Is_astralevel, RoleName::m, mons, Role::name, PM_ALIGNED_PRIEST, PM_ANGEL, PM_HIGH_PRIEST, renegade, rnd_gname(), rndmonnam(), str2role(), Strcat, Strcpy, u, urole, you::uz, and what.

Referenced by x_monnam().

Here is the call graph for this function:

Here is the caller graph for this function:

void reset_hostility ( struct monst roamer )

References EPRI, mons, monst::mtame, newsym(), PM_ALIGNED_PRIEST, PM_ANGEL, set_malign(), align::type, u, and you::ualign.

Referenced by final_level().

Here is the call graph for this function:

Here is the caller graph for this function:

void restpriest ( struct monst mtmp,
boolean  ghostly 
)

References assign_level(), d_level::dlevel, EPRI, u, and you::uz.

Referenced by restmonchn().

Here is the call graph for this function:

Here is the caller graph for this function:

char temple_occupied ( char *  array )

References ROOMOFFSET, rooms, and TEMPLE.

Referenced by angry_priest(), dosacrifice(), ghod_hitsu(), in_your_sanctuary(), and intemple().

Here is the caller graph for this function: