Defines | Functions

vault.c File Reference

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

Defines

#define g_monnam(mtmp)   x_monnam(mtmp, ARTICLE_NONE, (char *)0, SUPPRESS_IT, FALSE)

Functions

STATIC_DCL struct monstNDECL (findgd)
STATIC_DCL boolean FDECL (clear_fcorr,(struct monst *, BOOLEAN_P))
STATIC_DCL void FDECL (restfakecorr,(struct monst *))
STATIC_DCL boolean FDECL (in_fcorridor,(struct monst *, int, int))
STATIC_DCL void FDECL (move_gold,(struct obj *, int))
STATIC_DCL void FDECL (wallify_vault,(struct monst *))
STATIC_OVL boolean clear_fcorr (struct monst *grd, boolean forceshow)
STATIC_OVL void restfakecorr (struct monst *grd)
boolean grddead (struct monst *grd)
STATIC_OVL boolean in_fcorridor (struct monst *grd, int x, int y)
STATIC_OVL struct monstfindgd ()
char vault_occupied (char *array)
void invault ()
STATIC_OVL void move_gold (struct obj *gold, int vroom)
STATIC_OVL void wallify_vault (struct monst *grd)
int gd_move (struct monst *grd)
void paygd ()
long hidden_gold ()
boolean gd_sound ()

Define Documentation

#define g_monnam (   mtmp )    x_monnam(mtmp, ARTICLE_NONE, (char *)0, SUPPRESS_IT, FALSE)

Referenced by gd_move(), invault(), and wallify_vault().


Function Documentation

STATIC_OVL boolean clear_fcorr ( struct monst grd,
boolean  forceshow 
)

References ACCESSIBLE, block_point(), carried, couldsee, EGD, FALSE, in_fcorridor(), IS_ROCK, levl, m_at, map_location(), monst::mtame, on_level(), obj::ox, obj::oy, Punished, rloc(), TRUE, u, uball, you::ux, you::uy, you::uz, and yelp().

Referenced by gd_move(), grddead(), and restfakecorr().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL boolean FDECL ( in_fcorridor  ,
(struct monst *, int, int)   
)
STATIC_DCL void FDECL ( move_gold  ,
(struct obj *, int)   
)
STATIC_DCL boolean FDECL ( clear_fcorr  ,
(struct monst *, BOOLEAN_P)   
)
STATIC_DCL void FDECL ( wallify_vault  ,
(struct monst *)   
)
STATIC_DCL void FDECL ( restfakecorr  ,
(struct monst *)   
)
STATIC_OVL struct monst* findgd (  ) [read]

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

Referenced by gd_sound(), invault(), and paygd().

Here is the call graph for this function:

Here is the caller graph for this function:

int gd_move ( struct monst grd )
boolean gd_sound (  )

References FALSE, findgd(), u, you::urooms, and vault_occupied().

Referenced by dosounds().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean grddead ( struct monst grd )

References clear_fcorr(), EGD, newsym(), remove_monster(), and TRUE.

Here is the call graph for this function:

long hidden_gold (  )

References contained_gold(), Has_contents, invent, and obj::nobj.

Referenced by done(), dopay(), dopayobj(), gd_move(), gold_detect(), invault(), and u_init().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean in_fcorridor ( struct monst grd,
int  x,
int  y 
)

References EGD, FALSE, and TRUE.

Referenced by clear_fcorr(), gd_move(), and wallify_vault().

Here is the caller graph for this function:

void invault (  )
STATIC_OVL void move_gold ( struct obj gold,
int  vroom 
)

References mkroom::lx, mkroom::ly, newsym(), place_object(), remove_object(), rn2(), rooms, and stackobj().

Referenced by wallify_vault().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL struct monst* NDECL ( findgd   ) [read]
void paygd (  )
STATIC_OVL void restfakecorr ( struct monst grd )

References clear_fcorr(), FALSE, and mongone().

Referenced by gd_move().

Here is the call graph for this function:

Here is the caller graph for this function:

char vault_occupied ( char *  array )

References ROOMOFFSET, rooms, and VAULT.

Referenced by dosounds(), gd_move(), gd_sound(), and invault().

Here is the caller graph for this function:

STATIC_OVL void wallify_vault ( struct monst grd )

References BLCORNER, block_point(), BRCORNER, cansee, COULD_SEE, deltrap(), EGD, FALSE, g_at(), g_monnam, HWALL, mkroom::hx, mkroom::hy, in_fcorridor(), IN_SIGHT, IS_WALL, levl, mkroom::lx, mkroom::ly, m_at, mon, move_gold(), monst::mtame, newsym(), pline(), rloc(), rooms, t_at(), TLCORNER, TRCORNER, TRUE, viz_array, VWALL, trap::x, trap::y, and yelp().

Referenced by gd_move().

Here is the call graph for this function:

Here is the caller graph for this function: