File src/detect.c

References Variables: dungeon_topologysrc/decl.c

Included Files


External Variables

known
extern boolean known

Local Variables

level_detects
static struct {...} level_detects[]
Used in: use_crystal_ball()

Global Function cvt_sdoor_to_door()

void cvt_sdoor_to_door ( struct rm* lev )
Prototyped in: include/extern.h
Calls: on_level()
Called by: dosearch0()src/detect.c
  findone()src/detect.c
  openone()src/detect.c
  use_stethoscope()src/apply.c
References Variables: dungeon_topologysrc/decl.c
  usrc/decl.c

Global Function do_mapping()

void do_mapping ( void )
Prototyped in: include/extern.h
Calls: exercise()src/attrib.c
  show_map_spot()src/detect.c
  docrt(), flush_screen()
Called by: wiz_map()src/cmd.c
References Variables: WIN_MAPsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  windowprocs

Global Function do_vicinity_map()

void do_vicinity_map ( void )
Prototyped in: include/extern.h
Calls: show_map_spot()src/detect.c
  docrt(), flush_screen()
Called by: moveloop()src/allmain.c
References Variables: WIN_MAPsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  windowprocs

Global Function dosearch()

int dosearch ( void )
Prototyped in: include/extern.h
Calls: dosearch0()src/detect.c
Used in:  src/cmd.c

Global Function dosearch0()

int dosearch0 ( int aflag )
Prototyped in: include/extern.h
Calls: cvt_sdoor_to_door()src/detect.c
  exercise()src/attrib.c
  find_trap()src/detect.c
  isok()src/cmd.c
  spec_ability()src/artifact.c
  You(), You_feel(), a_monnam(), activate_statue_trap(), dist2(), feel_location(), map_invisible(), newsym(), nomul(), pline(), rnl(), seemimic(), t_at(), unblock_point(), unmap_object(), worm_known()
Called by: dosearch()src/detect.c
  moveloop()src/allmain.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function find_trap()

void find_trap ( struct trap* trap )
Prototyped in: include/extern.h
Calls: exercise()src/attrib.c
  You(), an(), dmgtype(), feel_location(), newsym(), rn2()
Called by: dosearch0()src/detect.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  defsyms

Global Function findit()

int findit ( void )
Prototyped in: include/extern.h
Calls: do_clear_area()
Called by: use_bell()src/apply.c
  wiz_detect()src/cmd.c
References Functions: findone()src/detect.c
References Variables: usrc/decl.c

Global Function food_detect()

int food_detect ( struct obj* sobj )
Prototyped in: include/extern.h
Calls: clear_stale_map()src/detect.c
  exercise()src/attrib.c
  o_in()src/detect.c
  You(), Your(), cls(), docrt(), map_object(), newsym(), strange_feeling(), under_ground(), under_water()
References Variables: WIN_MAPsrc/decl.c
  c_common_stringssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  known, windowprocs

Global Function gold_detect()

int gold_detect ( struct obj* sobj )
Prototyped in: include/extern.h
Calls: clear_stale_map()src/detect.c
  exercise()src/attrib.c
  o_in()src/detect.c
  You(), You_feel(), body_part(), cls(), docrt(), makeplural(), map_object(), monsndx(), newsym(), strange_feeling(), under_ground(), under_water()
References Variables: WIN_MAPsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  known, windowprocs

Global Function level_distance()

const char* level_distance ( d_level* where )
Prototyped in: include/extern.h
Calls: depth(), rn2()
Called by: use_crystal_ball()src/detect.c
References Variables: usrc/decl.c

Global Function monster_detect()

int monster_detect ( struct obj* otmp, int mclass )
Prototyped in: include/extern.h
Calls: You(), cls(), dmgtype(), docrt(), monsndx(), pline(), rn2(), show_glyph(), strange_feeling(), under_ground(), under_water()
Called by: use_crystal_ball()src/detect.c
References Variables: WIN_MAPsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function o_in()

struct obj* o_in ( struct obj* obj, char oclass )
Prototyped in: include/extern.h
Calls: o_in()src/detect.c
Called by: check_map_spot()src/detect.c
  food_detect()src/detect.c
  gold_detect()src/detect.c
  o_in()src/detect.c
  object_detect()src/detect.c

Global Function object_detect()

int object_detect ( struct obj* detector, int class )
Prototyped in: include/extern.h
Calls: clear_stale_map()src/detect.c
  do_dknown_of()src/detect.c
  o_in()src/detect.c
  You(), cls(), dmgtype(), docrt(), impossible(), map_object(), newsym(), strange_feeling(), under_ground(), under_water()
Called by: use_crystal_ball()src/detect.c
References Variables: WIN_MAPsrc/decl.c
  c_common_stringssrc/decl.c
  inventsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  objects, oclass_names, windowprocs

Global Function openit()

int openit ( void )
Prototyped in: include/extern.h
Calls: Monnam(), do_clear_area(), expels(), pline()
Called by: use_bell()src/apply.c
References Functions: openone()src/detect.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function sokoban_detect()

void sokoban_detect ( void )
Prototyped in: include/extern.h
Calls: map_background(), map_object(), map_trap()
References Variables: ftrapsrc/decl.c
  levelsrc/decl.c

Global Function trap_detect()

int trap_detect ( struct obj* sobj )
Prototyped in: include/extern.h
Calls: sense_trap()src/detect.c
  You_feel(), Your(), body_part(), cls(), docrt(), makeplural(), newsym(), sprintf(), strange_feeling(), under_ground(), under_water()
Called by: use_crystal_ball()src/detect.c
References Variables: WIN_MAPsrc/decl.c
  doorindexsrc/decl.c
  doorssrc/decl.c
  ftrapsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  windowprocs

Global Function use_crystal_ball()

void use_crystal_ball ( struct obj* obj )
Prototyped in: include/extern.h
Calls: acurr()src/attrib.c
  level_distance()src/detect.c
  monster_detect()src/detect.c
  object_detect()src/detect.c
  trap_detect()src/detect.c
  The(), You(), check_unpaid(), def_char_to_monclass(), def_char_to_objclass(), discover_object(), dmgtype(), hcolor(), losehp(), make_blinded(), make_confused(), make_hallucinated(), nomul(), pline(), pline_The(), poly_gender(), resists_blnd(), rn2(), rnd(), strchr(), the(), useup(), xname()
Called by: arti_invoke()src/artifact.c
  doapply()src/apply.c
References Variables: c_common_stringssrc/decl.c
  flagssrc/decl.c
  level_detectssrc/detect.c
  nomovemsgsrc/decl.c
  quitcharssrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Local Function check_map_spot()

static boolean check_map_spot ( int x, int y, char oclass )
Prototyped in: src/detect.c
Calls: o_in()src/detect.c
  glyph_at()
Called by: clear_stale_map()src/detect.c
References Variables: levelsrc/decl.c
  objects

Local Function clear_stale_map()

static boolean clear_stale_map ( char oclass )
Prototyped in: src/detect.c
Calls: check_map_spot()src/detect.c
  unmap_object()
Called by: food_detect()src/detect.c
  gold_detect()src/detect.c
  object_detect()src/detect.c

Local Function do_dknown_of()

static void do_dknown_of ( struct obj* obj )
Prototyped in: src/detect.c
Calls: do_dknown_of()src/detect.c
Called by: do_dknown_of()src/detect.c
  object_detect()src/detect.c

Local Function findone()

static void findone ( int zx, int zy, genericptr_t num )
Prototyped in: src/detect.c
Calls: cvt_sdoor_to_door()src/detect.c
  dist2(), map_invisible(), newsym(), seemimic(), t_at(), unmap_object(), worm_known()
Used in: findit()src/detect.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Local Function openone()

static void openone ( int zx, int zy, genericptr_t num )
Prototyped in: src/detect.c
Calls: cvt_sdoor_to_door()src/detect.c
  find_drawbridge()src/dbridge.c
  open_drawbridge()src/dbridge.c
  Norep(), b_trapped(), dist2(), newsym(), t_at(), wake_nearto()
Used in: openit()src/detect.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c

Local Function sense_trap()

static void sense_trap ( struct trap* trap, xchar x, xchar y, int src_cursed )
Prototyped in: src/detect.c
Calls: dmgtype(), map_object(), map_trap(), rn2()
Called by: trap_detect()src/detect.c
References Variables: usrc/decl.c
  youmonstsrc/decl.c

Local Function show_map_spot()

static void show_map_spot ( int x, int y )
Prototyped in: src/detect.c
Calls: magic_map_background(), newsym(), rn2(), unblock_point()
Called by: do_mapping()src/detect.c
  do_vicinity_map()src/detect.c
References Variables: levelsrc/decl.c
  usrc/decl.c