File src/lock.c


Included Files


Type struct xlock_s

struct xlock_s
struct xlock_s 
   { 
     struct rm* door; 
     struct obj* box; 
     int picktyp; 
     int chance; 
     int usedtime; 
   } 

Local Variables

xlock
static struct xlock_s xlock
Used in: boxlock()
  doforce()
  forcelock()
  lock_action()
  pick_lock()
  picking_at()
  picklock()
  reset_pick()

Global Function boxlock()

boolean boxlock ( struct obj* obj, struct obj* otmp )
Prototyped in: include/extern.h
Calls: reset_pick()src/lock.c
  pline()
References Variables: xlocksrc/lock.c

Global Function doclose()

int doclose ( void )
Prototyped in: include/extern.h
Calls: acurr()src/attrib.c
  acurrstr()src/attrib.c
  exercise()src/attrib.c
  feel_location()src/display.c
  getdir()src/cmd.c
  newsym()src/display.c
  obstructed()src/lock.c
  There(), You(), You_cant(), block_point(), pline(), pline_The(), rn2(), stumble_onto_mimic()
Used in:  src/cmd.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function doforce()

int doforce ( void )
Prototyped in: include/extern.h
Calls: set_occupation()src/cmd.c
  There(), You(), You_cant(), doname(), sprintf(), xname()
Used in:  src/cmd.c
References Functions: forcelock()src/lock.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  uwepsrc/decl.c
  xlocksrc/lock.c
  ynqcharssrc/decl.c
  objects, windowprocs

Global Function doopen()

int doopen ( void )
Prototyped in: include/extern.h
Calls: acurr()src/attrib.c
  acurrstr()src/attrib.c
  exercise()src/attrib.c
  feel_location()src/display.c
  getdir()src/cmd.c
  in_rooms()src/hack.c
  is_db_wall()src/dbridge.c
  newsym()src/display.c
  There(), You(), You_cant(), add_damage(), b_trapped(), pline(), pline_The(), rnl(), stumble_onto_mimic(), unblock_point()
Used in:  src/cmd.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function doorlock()

boolean doorlock ( struct obj* otmp, int x, int y )
Prototyped in: include/extern.h
Calls: in_rooms()src/hack.c
  newsym()src/display.c
  obstructed()src/lock.c
  on_level()src/dungeon.c
  picking_at()src/lock.c
  reset_pick()src/lock.c
  stop_occupation()src/allmain.c
  You_hear(), add_damage(), block_point(), impossible(), mb_trapped(), pline(), pline_The(), t_at(), unblock_point(), wake_nearto()
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c

Global Function pick_lock()

int pick_lock ( struct obj* pick )
Prototyped in: include/extern.h
Calls: acurr()src/attrib.c
  can_reach_floor()src/engrave.c
  getdir()src/cmd.c
  is_drawbridge_wall()src/dbridge.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  lock_action()src/lock.c
  mon_nam()src/do_name.c
  reset_pick()src/lock.c
  set_occupation()src/cmd.c
  There(), You(), You_cant(), doname(), impossible(), pline(), pline_The(), sprintf(), the(), verbalize(), worm_known(), xname()
Called by: doapply()src/apply.c
References Functions: picklock()src/lock.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  xlocksrc/lock.c
  yncharssrc/decl.c
  ynqcharssrc/decl.c
  youmonstsrc/decl.c
  mons, urole, windowprocs

Global Function picking_at()

boolean picking_at ( int x, int y )
Prototyped in: include/extern.h
Called by: doorlock()src/lock.c
References Functions: picklock()src/lock.c
References Variables: levelsrc/decl.c
  occupationsrc/decl.c
  xlocksrc/lock.c

Global Function picking_lock()

boolean picking_lock ( int* x, int* y )
Prototyped in: include/extern.h
References Functions: picklock()src/lock.c
References Variables: occupationsrc/decl.c
  usrc/decl.c

Global Function reset_pick()

void reset_pick ( void )
Prototyped in: include/extern.h
Called by: boxlock()src/lock.c
  doorlock()src/lock.c
  pick_lock()src/lock.c
  reset_occupations()src/cmd.c
References Variables: xlocksrc/lock.c

Local Function chest_shatter_msg()

static void chest_shatter_msg ( struct obj* otmp )
Prototyped in: src/lock.c
Calls: You(), pline(), potionbreathe(), singular()
Called by: forcelock()src/lock.c
References Functions: xname()
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  objects

Local Function forcelock()

static int forcelock ( void )
Prototyped in: src/lock.c
Calls: chest_shatter_msg()src/lock.c
  delobj()src/invent.c
  exercise()src/attrib.c
  stackobj()src/invent.c
  useup()src/invent.c
  You(), costly_spot(), obfree(), obj_extract_self(), obj_resists(), place_object(), pline(), rn2(), shop_keeper(), start_corpse_timeout(), stolen_value(), the(), wake_nearby(), xname()
Used in: doforce()src/lock.c
References Variables: monstermovessrc/decl.c
  usrc/decl.c
  uwepsrc/decl.c
  xlocksrc/lock.c
  youmonstsrc/decl.c

Local Function lock_action()

static const char* lock_action ( void )
Prototyped in: src/lock.c
Called by: pick_lock()src/lock.c
  picklock()src/lock.c
References Variables: xlocksrc/lock.c

Local Function obstructed()

static boolean obstructed ( int x, int y )
Prototyped in: src/lock.c
Calls: Monnam()src/do_name.c
  dist2()src/hacklib.c
  map_invisible()src/display.c
  pline(), worm_known()
Called by: doclose()src/lock.c
  doorlock()src/lock.c
References Variables: c_common_stringssrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Local Function picklock()

static int picklock ( void )
Prototyped in: src/lock.c
Calls: exercise()src/attrib.c
  in_rooms()src/hack.c
  lock_action()src/lock.c
  newsym()src/display.c
  You(), add_damage(), b_trapped(), chest_trap(), pline(), rn2(), unblock_point()
Used in: pick_lock()src/lock.c
  picking_at()src/lock.c
  picking_lock()src/lock.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  xlocksrc/lock.c
  youmonstsrc/decl.c