Functions | Variables

engrave.c File Reference

#include "hack.h"
#include "lev.h"
#include "decl.h"
#include <ctype.h>
Include dependency graph for engrave.c:

Functions

char * random_engraving (char *outbuf)
void wipeout_text (char *engr, int cnt, unsigned seed)
boolean can_reach_floor ()
const char * surface (int x, int y)
const char * ceiling (int x, int y)
struct engrengr_at (xchar x, xchar y)
void u_wipe_engr (int cnt)
void wipe_engr_at (xchar x, xchar y, xchar cnt)
void read_engr_at (int x, int y)
void make_engr_at (int x, int y, const char *s, long e_time, xchar e_type)
void del_engr_at (int x, int y)
int freehand ()
static int engrave (const char *, boolean)
int doengrave ()
int doengrave_elbereth ()
static int engrave (char *engraving, boolean fingers) const
void save_engravings (int fd, int mode)
void rest_engravings (int fd)
void del_engr (struct engr *ep)
void rloc_engr (struct engr *ep)
void make_grave (int x, int y, const char *str)

Variables

static const char * random_mesg []
struct {
   char   wipefrom
   const char *   wipeto
rubouts []
static NEARDATA const char styluses []
static const char * epitaphs []

Function Documentation

boolean can_reach_floor (  )
const char* ceiling ( int  x,
int  y 
)
void del_engr ( struct engr ep )

References dealloc_engr, head_engr, and engr::nxt_engr.

Referenced by del_engr_at(), engrave(), make_engr_at(), wipe_engr_at(), and zap_updown().

Here is the caller graph for this function:

void del_engr_at ( int  x,
int  y 
)

References del_engr(), and engr_at().

Referenced by blow_up_landmine(), bury_objs(), dig_up_grave(), do_flood(), gush(), launch_obj(), make_grave(), readobjnam(), spo_grave(), and unearth_objs().

Here is the call graph for this function:

Here is the caller graph for this function:

int doengrave (  )

return 1 if action took 1 (or more) moves, 0 if error or aborted

References engrave(), and FALSE.

Here is the call graph for this function:

int doengrave_elbereth (  )

References engrave(), and TRUE.

Here is the call graph for this function:

struct engr* engr_at ( xchar  x,
xchar  y 
) [read]

References engr::engr_x, engr::engr_y, head_engr, and engr::nxt_engr.

Referenced by del_engr_at(), engrave(), make_engr_at(), read_engr_at(), rloc_engr(), wipe_engr_at(), and zap_updown().

Here is the caller graph for this function:

static int engrave ( char *  engraving,
boolean  fingers 
) const [static]

References A_WIS, altar_wrath(), AMULET_CLASS, aobjnam(), ARMOR_CLASS, ATHAME, BALL_CLASS, bill_dummy_object(), Blind, body_part(), BUFSZ, BURN, can_reach_floor(), cantwield, CHAIN_CLASS, check_capacity(), check_unpaid(), COIN_CLASS, CONDUCT_ILLITERACY, Confusion, monst::data, del_engr(), doname(), DUST, u_conduct::elbereths, engr_at(), ENGR_BLOOD, engr::engr_txt, engr::engr_type, ENGRAVE, exercise(), FALSE, FINGER, flags, FOOD_CLASS, freehand(), GEM_CLASS, getlin, getobj(), Hallucination, HAND, HEADSTONE, u_roleplay::illiterate, ILLOBJ_CLASS, index, Is_airlevel, IS_ALTAR, is_animal, is_blade, is_boots, is_demon, IS_FOUNTAIN, IS_GRAVE, is_ice(), is_lava(), is_pool(), Is_waterlevel, is_whirly, Levitation, levl, MAGIC_MARKER, make_blinded(), make_engr_at(), makeknown, makemon(), makeplural(), MARK, permonst::mlet, mon_nam(), mons, more_experienced(), moves, multi, Never_mind, NO_MM_FLAGS, nomovemsg, objects, obj::oclass, otense(), otmp, obj::otyp, obj::owornmask, pline(), PM_GHOUL, POTION_CLASS, QBUFSZ, RANDOM_CLASS, random_engraving(), resists_blnd(), RING_CLASS, rloc_engr(), rn2(), rnd(), ROCK_CLASS, you::roleplay, S_VAMPIRE, SCROLL_CLASS, shop_keeper(), SPBOOK_CLASS, obj::spe, Sprintf, Strcpy, Stunned, surface(), The(), Tobjnam(), TOOL_CLASS, TOWEL, TRUE, u, ublindf, you::uconduct, Underwater, useup(), you::ushops, you::ustuck, uwep, you::ux, you::uy, you::uz, VENOM_CLASS, flag::verbose, violated(), vision_clears, WAN_CANCELLATION, WAN_COLD, WAN_CREATE_MONSTER, WAN_DEATH, WAN_DIGGING, WAN_ENLIGHTENMENT, WAN_FIRE, WAN_LIGHT, WAN_LIGHTNING, WAN_LOCKING, WAN_MAGIC_MISSILE, WAN_MAKE_INVISIBLE, WAN_NOTHING, WAN_OPENING, WAN_POLYMORPH, WAN_PROBING, WAN_SECRET_DOOR_DETECTION, WAN_SLEEP, WAN_SLOW_MONSTER, WAN_SPEED_MONSTER, WAN_STRIKING, WAN_TELEPORTATION, WAN_UNDEAD_TURNING, WAN_WISHING, WAND_CLASS, WEAPON_CLASS, wizard, xname(), yn_function(), ynqchars, youmonst, zapnodir(), zappable(), and zeroobj.

Here is the call graph for this function:

static int engrave ( const char *  ,
boolean   
) [static]

Referenced by doengrave(), and doengrave_elbereth().

Here is the caller graph for this function:

int freehand (  )

References bimanual, uarms, uwep, and welded().

Referenced by able_to_loot(), engrave(), fix_worst_trouble(), in_trouble(), spelleffects(), use_container(), use_stethoscope(), and use_towel().

Here is the call graph for this function:

Here is the caller graph for this function:

void make_engr_at ( int  x,
int  y,
const char *  s,
long  e_time,
xchar  e_type 
)
void make_grave ( int  x,
int  y,
const char *  str 
)

References del_engr_at(), GRAVE, HEADSTONE, levl, make_engr_at(), rn2(), ROOM, SIZE, and t_at().

Referenced by done(), fill_zoo(), mkgrave(), paygd(), readobjnam(), and spo_grave().

Here is the call graph for this function:

Here is the caller graph for this function:

char* random_engraving ( char *  outbuf )

References getrumor(), random_mesg, rn2(), SIZE, Strcpy, TRUE, and wipeout_text().

Referenced by engrave(), makelevel(), and zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

void read_engr_at ( int  x,
int  y 
)
void rest_engravings ( int  fd )

References engr::engr_txt, head_engr, moves, mread(), and newengr.

Referenced by getlev().

Here is the call graph for this function:

Here is the caller graph for this function:

void rloc_engr ( struct engr ep )

References COLNO, engr_at(), goodpos(), rn1, rn2(), and ROWNO.

Referenced by engrave(), and zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

void save_engravings ( int  fd,
int  mode 
)

References bwrite(), dealloc_engr, engr::engr_lth, engr::engr_txt, head_engr, engr::nxt_engr, perform_bwrite, and release_data.

Referenced by savelev().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* surface ( int  x,
int  y 
)
void u_wipe_engr ( int  cnt )

References can_reach_floor(), u, you::ux, you::uy, and wipe_engr_at().

Referenced by attack(), dokick(), domove(), moveloop(), throw_obj(), and use_pick_axe2().

Here is the call graph for this function:

Here is the caller graph for this function:

void wipe_engr_at ( xchar  x,
xchar  y,
xchar  cnt 
)

References BURN, del_engr(), DUST, engr_at(), ENGR_BLOOD, engr::engr_txt, engr::engr_type, HEADSTONE, is_ice(), rn2(), and wipeout_text().

Referenced by dochug(), makeniche(), u_wipe_engr(), and zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

void wipeout_text ( char *  engr,
int  cnt,
unsigned  seed 
)

References BUFSZ, index, rn2(), rubouts, SIZE, wipefrom, and wipeto.

Referenced by doread(), dowrite(), random_engraving(), and wipe_engr_at().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char* epitaphs[] [static]
const char* random_mesg[] [static]

Referenced by random_engraving().

struct { ... } rubouts[] [static]

Referenced by wipeout_text().

NEARDATA const char styluses[] [static]
char wipefrom

Referenced by wipeout_text().

const char* wipeto

Referenced by wipeout_text().