File src/dig.c


Included Files


Preprocessor definitions

#define BY_YOU youmonst

#define BY_OBJECT


Local Variables

did_dig_msg
static boolean did_dig_msg
Used in: dig()
  use_pick_axe()

Global Function bury_an_obj()

struct obj* bury_an_obj ( struct obj* otmp )
Prototyped in: include/extern.h
Calls: is_ice()src/dbridge.c
  o_unleash()src/apply.c
  add_to_buried(), end_burn(), obfree(), obj_extract_self(), obj_resists(), rnd(), start_timer(), unpunish()
Called by: bury_objs()src/dig.c
  rot_organic()src/dig.c
References Variables: uballsrc/decl.c
  uchainsrc/decl.c
  objects

Global Function bury_objs()

void bury_objs ( int x, int y )
Prototyped in: include/extern.h
Calls: bury_an_obj()src/dig.c
  del_engr_at(), newsym()
References Variables: levelsrc/decl.c

Global Function dig_check()

boolean dig_check ( struct monst* madeby, boolean verbose, int x, int y )
Prototyped in: include/extern.h
Calls: is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  Can_dig_down(), On_stairs(), There(), You(), on_level(), pline_The(), sobj_at(), surface(), t_at()
Called by: dig()src/dig.c
  do_break_wand()src/apply.c
References Variables: dnladdersrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  upladdersrc/decl.c

Global Function digactualhole()

void digactualhole ( int x, int y, struct monst* madeby, int ttyp )
Prototyped in: include/extern.h
Calls: next_to_u()src/apply.c
  Can_dig_down(), Is_botlevel(), Monnam(), You(), assign_level(), breaksink(), count_wsegs(), depth(), dogushforth(), dryup(), get_level(), goto_level(), impact_drop(), impossible(), in_rooms(), ledger_no(), maketrap(), migrate_to_level(), mintrap(), newsym(), on_level(), pay_for_damage(), pickup(), pline(), rn2(), shopdig(), spoteffects(), strcpy(), surface(), teleport_pet(), worm_known()
Called by: dighole()src/dig.c
  do_break_wand()src/apply.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  vision_full_recalcsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  defsyms, mons

Global Function dighole()

boolean dighole ( boolean pit_only )
Prototyped in: include/extern.h
Calls: destroy_drawbridge()src/dbridge.c
  dig_up_grave()src/dig.c
  digactualhole()src/dig.c
  fillholetyp()src/dig.c
  find_drawbridge()src/dbridge.c
  is_drawbridge_wall()src/dbridge.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  unearth_objs()src/dig.c
  Can_dig_down(), delfloortrap(), delobj(), drown(), lava_effects(), on_level(), pline(), pline_The(), rn2(), sobj_at(), surface(), t_at(), wake_nearby()
Called by: dig()src/dig.c
  zap_dig()src/dig.c
References Variables: dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c

Global Function holetime()

int holetime ( void )
Prototyped in: include/extern.h
References Functions: dig()src/dig.c
References Variables: diggingsrc/decl.c
  occupationsrc/decl.c
  usrc/decl.c

Global Function mdig_tunnel()

boolean mdig_tunnel ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: cvt_sdoor_to_door()src/detect.c
  You_feel(), You_hear(), add_damage(), closed_door(), impossible(), in_rooms(), mb_trapped(), mksobj_at(), newsym(), rn2(), rnd(), sobj_at(), unblock_point()
References Variables: flagssrc/decl.c
  levelsrc/decl.c

Global Function rot_corpse()

void rot_corpse ( genericptr_t arg, long timeout )
Prototyped in: include/extern.h
Calls: rot_organic()src/dig.c
  stop_occupation()src/allmain.c
  Your(), corpse_xname(), newsym(), uqwepgone(), uswapwepgone(), uwepgone()
References Variables: flagssrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  windowprocs

Global Function rot_organic()

void rot_organic ( genericptr_t arg, long timeout )
Prototyped in: include/extern.h
Calls: bury_an_obj()src/dig.c
  obfree(), obj_extract_self()
Called by: rot_corpse()src/dig.c

Global Function unearth_objs()

void unearth_objs ( int x, int y )
Prototyped in: include/extern.h
Calls: del_engr_at(), newsym(), obj_extract_self(), place_object(), stackobj(), stop_timer()
Called by: dighole()src/dig.c
References Variables: levelsrc/decl.c

Global Function use_pick_axe()

int use_pick_axe ( struct obj* obj )
Prototyped in: include/extern.h
Calls: confdir()src/cmd.c
  dig_typ()src/dig.c
  getdir()src/cmd.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  isok()src/cmd.c
  movecmd()src/cmd.c
  set_occupation()src/cmd.c
  wield_tool()src/apply.c
  There(), You(), You_cant(), Your(), aobjnam(), assign_level(), attack(), can_reach_floor(), ceiling(), d(), dbon(), losehp(), nomul(), on_level(), pline(), rn2(), rnd(), seetrap(), self_pronoun(), shopdig(), sprintf(), strcpy(), surface(), t_at(), yname()
Called by: doapply()src/apply.c
References Functions: dig()src/dig.c
References Variables: did_dig_msgsrc/dig.c
  diggingsrc/decl.c
  dungeon_topologysrc/decl.c
  flagssrc/decl.c
  iflagssrc/decl.c
  levelsrc/decl.c
  ndirsrc/decl.c
  nomovemsgsrc/decl.c
  sdirsrc/decl.c
  usrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function zap_dig()

void zap_dig ( void )
Prototyped in: include/extern.h
Calls: dighole()src/dig.c
  isok()src/cmd.c
  On_stairs(), You(), add_damage(), body_part(), ceiling(), closed_door(), expels(), in_rooms(), losehp(), may_dig(), mksobj_at(), mon_nam(), newsym(), on_level(), pay_for_damage(), pline(), pline_The(), rn2(), rnd(), s_suffix(), stackobj(), tmp_at(), unblock_point(), xname()
References Variables: dnladdersrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uarmhsrc/decl.c
  ublindfsrc/decl.c
  upladdersrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons, objects, windowprocs

Local Function dig()

static int dig ( void )
Prototyped in: src/dig.c
Calls: acurrstr()src/attrib.c
  cvt_sdoor_to_door()src/detect.c
  dig_check()src/dig.c
  dig_typ()src/dig.c
  dighole()src/dig.c
  mkcavearea()src/dig.c
  You(), Your(), abon(), add_damage(), altar_wrath(), angry_priest(), b_trapped(), break_statue(), closed_door(), dist2(), dropx(), feel_location(), fracture_rock(), in_rooms(), makemon(), may_dig(), memset(), newsym(), on_level(), pay_for_damage(), pline(), pline_The(), rn2(), rnd(), set_wounded_legs(), setuwep(), sobj_at(), t_at(), the(), unblock_point(), welded(), xname()
Used in: holetime()src/dig.c
  use_pick_axe()src/dig.c
References Variables: did_dig_msgsrc/dig.c
  diggingsrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c
  mons, objects, urace

Local Function dig_typ()

static int dig_typ ( xchar x, xchar y )
Prototyped in: src/dig.c
Calls: closed_door(), sobj_at()
Called by: dig()src/dig.c
  use_pick_axe()src/dig.c
References Variables: levelsrc/decl.c

Local Function dig_up_grave()

static void dig_up_grave ( void )
Prototyped in: src/dig.c
Calls: adjalign()src/attrib.c
  exercise()src/attrib.c
  You(), You_feel(), del_engr_at(), dmgtype(), makemon(), mk_tt_object(), mkclass(), newsym(), pline(), pline_The(), rn2(), sgn()
Called by: dighole()src/dig.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  urole

Local Function fillholetyp()

static schar fillholetyp ( int x, int y )
Prototyped in: src/dig.c
Calls: rn2()
Called by: dighole()src/dig.c
References Variables: levelsrc/decl.c

Local Function mkcavearea()

static void mkcavearea ( boolean rockit )
Prototyped in: src/dig.c
Calls: mkcavepos()src/dig.c
  rm_waslit()src/dig.c
  flush_screen(), newsym(), pline()
Called by: dig()src/dig.c
References Variables: WIN_MESSAGEsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  vision_full_recalcsrc/decl.c
  windowprocs

Local Function mkcavepos()

static void mkcavepos ( xchar x, xchar y, int dist, boolean waslit, boolean rockit )
Prototyped in: src/dig.c
Calls: isok()src/cmd.c
  feel_location(), impossible(), newsym(), rloc(), t_at(), unblock_point()
Called by: mkcavearea()src/dig.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Local Function rm_waslit()

static boolean rm_waslit ( void )
Prototyped in: src/dig.c
Calls: isok()src/cmd.c
Called by: mkcavearea()src/dig.c
References Variables: levelsrc/decl.c
  usrc/decl.c