File src/do.c


Included Files


Global Variable save_dlevel

d_level save_dlevel
Visible in:  src/do.c
  no_bones_level()src/bones.c
Used in: no_bones_level()src/bones.c

Local Variables

drop_types
static const char drop_types[]
Used in: dodrop()

at_ladder
static boolean at_ladder
Used in: dodown()
  doup()
  goto_level()

dfr_pre_msg
static char* dfr_pre_msg
Used in: deferred_goto()
  schedule_goto()

dfr_post_msg
static char* dfr_post_msg
Used in: deferred_goto()
  schedule_goto()


Global Function boulder_hits_pool()

boolean boulder_hits_pool ( struct obj* otmp, int rx, int ry, boolean pushing )
Prototyped in: include/extern.h
Calls: bury_objs()src/dig.c
  docrt()src/display.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  newsym()src/display.c
  There(), You(), You_hear(), burn_away_slime(), d(), delobj(), dist2(), impossible(), losehp(), obfree(), on_level(), pline(), rn2(), the(), wake_nearto(), xname()
Called by: flooreffects()src/do.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

Global Function canletgo()

boolean canletgo ( struct obj* obj, const char* word )
Prototyped in: include/extern.h
Calls: Norep(), You(), body_part(), freeinv(), obfree(), pline(), pline_The(), weight()
Called by: drop()src/do.c
  litter()src/ball.c
References Variables: c_common_stringssrc/decl.c

Global Function deferred_goto()

void deferred_goto ( void )
Prototyped in: include/extern.h
Calls: goto_level()src/do.c
  newsym()src/display.c
  assign_level(), deltrap(), free(), on_level(), pline(), t_at()
Called by: moveloop()src/allmain.c
References Variables: dfr_post_msgsrc/do.c
  dfr_pre_msgsrc/do.c
  usrc/decl.c

Global Function doaltarobj()

void doaltarobj ( struct obj* obj )
Prototyped in: include/extern.h
Calls: Doname2(), There(), an(), dmgtype(), doname(), hcolor(), pline()
Called by: drop()src/do.c
References Variables: c_color_namessrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function doddrop()

int doddrop ( void )
Prototyped in: include/extern.h
Calls: menu_drop()src/do.c
  reset_occupations()src/cmd.c
  add_valid_menu_class(), ggetobj(), sellobj_state()
Used in:  src/cmd.c
References Functions: drop()src/do.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Global Function dodown()

int dodown ( void )
Prototyped in: include/extern.h
Calls: next_to_u()src/apply.c
  Can_fall_thru(), You(), You_cant(), float_down(), floating_above(), goto_hell(), locomotion(), next_level(), on_level(), pline(), surface(), t_at()
Used in:  src/cmd.c
References Variables: at_laddersrc/do.c
  dnladdersrc/decl.c
  dnstairsrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  sstairssrc/decl.c
  usrc/decl.c
  yncharssrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function dodrop()

int dodrop ( void )
Prototyped in: include/extern.h
Calls: drop()src/do.c
  reset_occupations()src/cmd.c
  getobj(), sellobj_state()
Used in:  src/cmd.c
References Variables: drop_typessrc/do.c
  inventsrc/decl.c
  usrc/decl.c

Global Function donull()

int donull ( void )
Prototyped in: include/extern.h
Used in:  src/cmd.c

Global Function doup()

int doup ( void )
Prototyped in: include/extern.h
Calls: next_to_u()src/apply.c
  You(), You_cant(), Your(), ledger_no(), near_capacity(), prev_level()
Used in:  src/cmd.c
References Variables: at_laddersrc/do.c
  levelsrc/decl.c
  sstairssrc/decl.c
  usrc/decl.c
  upladdersrc/decl.c
  upstairsrc/decl.c
  yncharssrc/decl.c
  windowprocs

Global Function dowipe()

int dowipe ( void )
Prototyped in: include/extern.h
Calls: set_occupation()src/cmd.c
  Your(), body_part(), sprintf()
Used in:  src/cmd.c
References Functions: wipeoff()src/do.c
References Variables: usrc/decl.c

Global Function dropx()

void dropx ( struct obj* obj )
Prototyped in: include/extern.h
Calls: dropy()src/do.c
  freeinv(), ship_object()
Called by: dig()src/dig.c
  dosinkring()src/do.c
  drop()src/do.c
  litter()src/ball.c
  use_grease()src/apply.c
  use_towel()src/apply.c
  use_whip()src/apply.c
References Variables: inventsrc/decl.c
  usrc/decl.c

Global Function dropy()

void dropy ( struct obj* obj )
Prototyped in: include/extern.h
Calls: drop_ball()src/ball.c
  flooreffects()src/do.c
  map_object()src/display.c
  newsym()src/display.c
  mpickobj(), place_object(), rn2(), sellobj(), stackobj()
Called by: dropx()src/do.c
References Variables: usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function flooreffects()

boolean flooreffects ( struct obj* obj, int x, int y, const char* verb )
Prototyped in: include/extern.h
Calls: boulder_hits_pool()src/do.c
  bury_objs()src/dig.c
  is_pool()src/dbridge.c
  newsym()src/display.c
  You_hear(), deltrap(), hmon(), losehp(), obfree(), panic(), pline_The(), rnd(), t_at(), water_damage()
Called by: destroy_drawbridge()src/dbridge.c
  dropy()src/do.c
  placebc()src/ball.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function goto_level()

void goto_level ( d_level* newlevel, boolean at_stairs, boolean falling, boolean portal )
Prototyped in: include/extern.h
Calls: ballfall()src/ball.c
  currentlevel_rewrite()src/do.c
  docrt()src/display.c
  drag_down()src/ball.c
  final_level()src/do.c
  flush_screen()src/display.c
  next_to_u()src/apply.c
  placebc()src/ball.c
  save_currentstate()src/do.c
  unplacebc()src/ball.c
  In_V_tower(), In_W_tower(), In_hell(), In_quest(), On_W_tower_level(), You(), You_hear(), __errno_location(), assign_level(), assign_rnd_level(), assign_rogue_graphics(), at_dgn_entrance(), bclose(), bufon(), check_special_room(), close(), com_pager(), delete_levelfile(), depth(), dismount_steed(), dist2(), dmgtype(), done(), dunlev(), dunlevs_in_dungeon(), enexto(), fill_pit(), forget_map(), forget_traps(), freeinv(), getlev(), impact_drop(), impossible(), initrack(), keepdogs(), kill_genocided_monsters(), leaderless(), ledger_no(), losedogs(), losehp(), maxledgerno(), memset(), minit(), mklev(), mnexto(), movebubbles(), near_capacity(), obj_delivery(), occupied(), ok_to_quest(), on_level(), onquest(), open_levelfile(), panic(), pickup(), place_lregion(), pline(), pline_The(), reset_rndmonst(), resurrect(), rloc(), rn2(), rnd(), run_timers(), safe_teleds(), savelev(), seetrap(), selftouch(), setuqwep(), setuswapwep(), setuwep(), u_on_dnstairs(), u_on_newpos(), u_on_sstairs(), u_on_upstairs(), update_mlstmv(), vision_recalc(), vision_reset()
Called by: arti_invoke()src/artifact.c
  deferred_goto()src/do.c
  digactualhole()src/dig.c
References Variables: at_laddersrc/do.c
  dndestsrc/decl.c
  dnladdersrc/decl.c
  dungeon_topologysrc/decl.c
  dungeonssrc/decl.c
  ftrapsrc/decl.c
  hackpidsrc/decl.c
  levelsrc/decl.c
  level_infosrc/decl.c
  mvitalssrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  updestsrc/decl.c
  upladdersrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c
  urole

Global Function heal_legs()

void heal_legs ( void )
Prototyped in: include/extern.h
Calls: Your(), body_part(), encumber_msg(), makeplural()
References Variables: flagssrc/decl.c
  usrc/decl.c

Global Function revive_corpse()

boolean revive_corpse ( struct obj* corpse )
Prototyped in: include/extern.h
Calls: Adjmonnam(), Monnam(), You_feel(), an(), corpse_xname(), eos(), impossible(), mon_nam(), pline(), pline_The(), revive(), strcpy(), worm_known()
Called by: revive_mon()src/do.c
  use_tinning_kit()src/apply.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function revive_mon()

void revive_mon ( genericptr_t arg, long timeout )
Prototyped in: include/extern.h
Calls: revive_corpse()src/do.c
  You_feel(), start_timer()
References Variables: monstermovessrc/decl.c
  mons

Global Function save_currentstate()

void save_currentstate ( void )
Prototyped in: include/extern.h
Calls: currentlevel_rewrite()src/do.c
  bclose(), bufon(), ledger_no(), savelev(), savestateinlock()
Called by: goto_level()src/do.c
  newgame()src/allmain.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Global Function schedule_goto()

void schedule_goto ( d_level* tolev, boolean at_stairs, boolean falling, int portal_flag, const char* pre_msg, const char* post_msg )
Prototyped in: include/extern.h
Calls: alloc()src/alloc.c
  assign_level(), strcpy(), strlen()
References Variables: dfr_post_msgsrc/do.c
  dfr_pre_msgsrc/do.c
  usrc/decl.c

Global Function set_wounded_legs()

void set_wounded_legs ( long side, int timex )
Prototyped in: include/extern.h
Calls: encumber_msg()
Called by: dig()src/dig.c
  drop_ball()src/ball.c
  jump()src/apply.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Local Function currentlevel_rewrite()

static int currentlevel_rewrite ( void )
Prototyped in: src/do.c
Calls: create_levelfile(), ledger_no(), pline()
Called by: goto_level()src/do.c
  save_currentstate()src/do.c
References Variables: usrc/decl.c
  windowprocs

Local Function dosinkring()

static void dosinkring ( struct obj* obj )
Prototyped in: src/do.c
Calls: dropx()src/do.c
  trycall()src/do.c
  You(), You_hear(), delobj(), doname(), hcolor(), makeplural(), obj_resists(), pline(), pline_The(), rn2(), useup(), xname()
Called by: drop()src/do.c
References Variables: c_color_namessrc/decl.c
  levelsrc/decl.c
  pl_fruitsrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uchainsrc/decl.c
  youmonstsrc/decl.c

Local Function drop()

static int drop ( struct obj* obj )
Prototyped in: src/do.c
Calls: canletgo()src/do.c
  doaltarobj()src/do.c
  dosinkring()src/do.c
  dropx()src/do.c
  You(), can_reach_floor(), doname(), freeinv(), hitfloor(), mon_nam(), s_suffix(), setuqwep(), setuswapwep(), setuwep(), welded(), weldmsg()
Called by: dodrop()src/do.c
  menu_drop()src/do.c
Used in: doddrop()src/do.c
  menu_drop()src/do.c
References Variables: flagssrc/decl.c
  inventsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c

Local Function final_level()

static void final_level ( void )
Prototyped in: src/do.c
Calls: You_feel(), bless(), create_mplayers(), d(), enexto(), m_dowear(), mk_roamer(), mksobj(), mongets(), mpickobj(), panic(), pline(), reset_hostility(), rn2(), rnd(), select_hwep(), which_armor()
Called by: goto_level()src/do.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  mons

Local Function menu_drop()

static int menu_drop ( int retry )
Prototyped in: src/do.c
Calls: drop()src/do.c
  add_valid_menu_class(), assigninvlet(), dealloc_obj(), free(), ggetobj(), mkgoldobj(), query_category(), query_objlist(), setuqwep(), setuswapwep(), setuwep(), splitobj(), welded()
Called by: doddrop()src/do.c
References Functions: drop()src/do.c
  allow_all(), allow_category()
References Variables: flagssrc/decl.c
  inventsrc/decl.c
  usrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c

Local Function trycall()

static void trycall ( struct obj* obj )
Prototyped in: src/do.c
Calls: docall()
Called by: dosinkring()src/do.c
References Variables: objects

Local Function wipeoff()

static int wipeoff ( void )
Prototyped in: src/do.c
Calls: Your(), body_part(), make_blinded(), pline()
Used in: dowipe()src/do.c
References Variables: usrc/decl.c