File src/dothrow.c


Included Files


Preprocessor definitions

#define quest_arti_hits_leader( obj, mon )

Global Variable check_proc

boolean (*check_proc)(genericptr_t,int,int)
Visible in:  src/dothrow.c

Global Variable arg

genericptr_t arg
Visible in:  src/dothrow.c

External Variables

notonhead
extern boolean notonhead

Local Variables

toss_objs
static const char toss_objs[]
Used in: dothrow()

bullets
static const char bullets[]
Used in: dothrow()


Global Function breaks()

int breaks ( struct obj* obj, xchar x, xchar y )
Prototyped in: include/extern.h
Calls: breakmsg()src/dothrow.c
  breakobj()src/dothrow.c
  breaktest()src/dothrow.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function breaktest()

boolean breaktest ( struct obj* obj )
Prototyped in: include/extern.h
Calls: obj_resists()
Called by: breaks()src/dothrow.c
  hero_breaks()src/dothrow.c
  throwit()src/dothrow.c
  toss_up()src/dothrow.c

Global Function dofire()

int dofire ( void )
Prototyped in: include/extern.h
Calls: autoquiver()src/dothrow.c
  dothrow()src/dothrow.c
  throw_obj()src/dothrow.c
  You(), check_capacity(), prinv()
Used in:  src/cmd.c
References Variables: flagssrc/decl.c
  multisrc/decl.c
  save_cmsrc/decl.c
  uquiversrc/decl.c

Global Function dothrow()

int dothrow ( void )
Prototyped in: include/extern.h
Calls: throw_obj()src/dothrow.c
  check_capacity(), getobj()
Called by: dofire()src/dothrow.c
Used in:  src/cmd.c
References Variables: bulletssrc/dothrow.c
  multisrc/decl.c
  save_cmsrc/decl.c
  toss_objssrc/dothrow.c
  uwepsrc/decl.c
  objects

Global Function hero_breaks()

int hero_breaks ( struct obj* obj, xchar x, xchar y, boolean from_invent )
Prototyped in: include/extern.h
Calls: breakmsg()src/dothrow.c
  breakobj()src/dothrow.c
  breaktest()src/dothrow.c
Called by: hitfloor()src/dothrow.c
  kick_object()src/dokick.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function hitfloor()

void hitfloor ( struct obj* obj )
Prototyped in: include/extern.h
Calls: doaltarobj()src/do.c
  dropy()src/do.c
  hero_breaks()src/dothrow.c
  ship_object()src/dokick.c
  Doname2(), pline(), surface()
Called by: drop()src/do.c
  throwit()src/dothrow.c
  toss_up()src/dothrow.c
References Variables: levelsrc/decl.c
  usrc/decl.c

Global Function hurtle()

void hurtle ( int dx, int dy, int range, boolean verbose )
Prototyped in: include/extern.h
Calls: change_luck()src/attrib.c
  walk_path()src/dothrow.c
  You(), You_feel(), nomul(), sgn(), surface()
Called by: dokick()src/dokick.c
  throwit()src/dothrow.c
  use_grapple()src/apply.c
References Functions: hurtle_step()src/dothrow.c
References Variables: dungeon_topologysrc/decl.c
  usrc/decl.c
  uballsrc/decl.c

Global Function hurtle_step()

boolean hurtle_step ( genericptr_t arg, int x, int y )
Prototyped in: include/extern.h
Calls: a_monnam()src/do_name.c
  flush_screen()src/display.c
  isok()src/cmd.c
  newsym()src/display.c
  You(), You_feel(), closed_door(), losehp(), may_passwall(), pline(), rnd(), sobj_at(), vision_recalc(), wakeup(), xname()
Used in: hurtle()src/dothrow.c
  jump()src/apply.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function omon_adj()

int omon_adj ( struct monst* mon, struct obj* obj, boolean mon_notices )
Prototyped in: include/extern.h
Calls: hitval(), rn2()
Called by: drag_ball()src/ball.c
  thitmonst()src/dothrow.c
References Variables: uballsrc/decl.c
  objects

Global Function thitmonst()

int thitmonst ( struct monst* mon, struct obj* obj )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  acurr()src/attrib.c
  check_shop_obj()src/dothrow.c
  exercise()src/attrib.c
  gem_accept()src/dothrow.c
  mon_nam()src/do_name.c
  omon_adj()src/dothrow.c
  sho_obj_return_to_u()src/dothrow.c
  tamedog()src/dog.c
  throwing_weapon()src/dothrow.c
  tmiss()src/dothrow.c
  The(), addinv(), cutworm(), distmin(), encumber_msg(), find_mac(), finish_quest(), hmon(), impossible(), is_quest_artifact(), monnear(), mpickobj(), obfree(), pline(), potionhit(), rn2(), rnd(), s_suffix(), the(), wakeup(), weapon_hit_bonus(), xname()
Called by: kick_object()src/dokick.c
  throwit()src/dothrow.c
  use_grapple()src/apply.c
  use_pole()src/apply.c
References Variables: bhitpossrc/decl.c
  usrc/decl.c
  uarmgsrc/decl.c
  uballsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c
  objects, urace, urole

Global Function throwit()

void throwit ( struct obj* obj, long wep_mask )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  acurrstr()src/attrib.c
  artifact_hit()src/artifact.c
  breakmsg()src/dothrow.c
  breakobj()src/dothrow.c
  breaktest()src/dothrow.c
  check_shop_obj()src/dothrow.c
  drop_ball()src/ball.c
  dropy()src/do.c
  exercise()src/attrib.c
  flooreffects()src/do.c
  hitfloor()src/dothrow.c
  hurtle()src/dothrow.c
  newsym()src/display.c
  ship_object()src/dokick.c
  sho_obj_return_to_u()src/dothrow.c
  snuff_candle()src/apply.c
  thitmonst()src/dothrow.c
  throwing_weapon()src/dothrow.c
  tmp_at()src/display.c
  toss_up()src/dothrow.c
  The(), addinv(), bhit(), body_part(), boomhit(), ceiling(), dmgtype(), encumber_msg(), hot_pursuit(), in_rooms(), inside_shop(), losehp(), mpickobj(), obj_sheds_light(), on_level(), place_object(), pline(), rn2(), rnd(), setuwep(), setworn(), stackobj(), strchr(), the(), xname()
Called by: throw_obj()src/dothrow.c
References Variables: bhitpossrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  otg_tempsrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  vision_full_recalcsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  notonhead, objects, urole, windowprocs

Global Function walk_path()

boolean walk_path ( coord* src_cc, coord* dest_cc, int check_proc, int arg )
Prototyped in: include/extern.h
Called by: hurtle()src/dothrow.c
  jump()src/apply.c

Local Function autoquiver()

static void autoquiver ( void )
Prototyped in: src/dothrow.c
Calls: setuqwep()
Called by: dofire()src/dothrow.c
References Variables: inventsrc/decl.c
  uquiversrc/decl.c
  uwepsrc/decl.c
  objects

Local Function breakmsg()

static void breakmsg ( struct obj* obj, boolean in_view )
Prototyped in: src/dothrow.c
Calls: Doname2(), You_hear(), pline()
Called by: breaks()src/dothrow.c
  hero_breaks()src/dothrow.c
  throwit()src/dothrow.c
  toss_up()src/dothrow.c
References Variables: c_common_stringssrc/decl.c

Local Function breakobj()

static void breakobj ( struct obj* obj, xchar x, xchar y, boolean heros_fault, boolean from_invent )
Prototyped in: src/dothrow.c
Calls: change_luck()src/attrib.c
  check_shop_obj()src/dothrow.c
  You(), costly_spot(), delobj(), dist2(), in_rooms(), inside_shop(), make_angry_shk(), potionbreathe(), shop_keeper(), splatter_burning_oil(), stolen_value()
Called by: breaks()src/dothrow.c
  hero_breaks()src/dothrow.c
  throwit()src/dothrow.c
  toss_up()src/dothrow.c
References Variables: movessrc/decl.c
  usrc/decl.c

Local Function check_shop_obj()

static void check_shop_obj ( struct obj* obj, xchar x, xchar y, boolean broken )
Prototyped in: src/dothrow.c
Calls: costly_spot(), in_rooms(), sellobj(), shop_keeper(), stolen_value(), subfrombill()
Called by: breakobj()src/dothrow.c
  gem_accept()src/dothrow.c
  thitmonst()src/dothrow.c
  throwit()src/dothrow.c
References Variables: usrc/decl.c

Local Function gem_accept()

static int gem_accept ( struct monst* mon, struct obj* obj )
Prototyped in: src/dothrow.c
Calls: Monnam()src/do_name.c
  change_luck()src/attrib.c
  check_shop_obj()src/dothrow.c
  mpickobj(), pline(), rloc(), rn2(), sgn(), strcat(), strcpy(), tele_restrict()
Called by: thitmonst()src/dothrow.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  objects

Local Function sho_obj_return_to_u()

static void sho_obj_return_to_u ( struct obj* obj )
Prototyped in: src/dothrow.c
Calls: tmp_at()src/display.c
  dmgtype(), rn2()
Called by: thitmonst()src/dothrow.c
  throwit()src/dothrow.c
References Variables: bhitpossrc/decl.c
  otg_tempsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Local Function throw_gold()

static int throw_gold ( struct obj* obj )
Prototyped in: src/dothrow.c
Calls: acurrstr()src/attrib.c
  flooreffects()src/do.c
  ghitm()src/dokick.c
  mon_nam()src/do_name.c
  newsym()src/display.c
  ship_object()src/dokick.c
  bhit(), body_part(), ceiling(), closed_door(), dealloc_obj(), on_level(), place_object(), pline(), pline_The(), sellobj(), stackobj(), surface()
Called by: throw_obj()src/dothrow.c
References Variables: bhitpossrc/decl.c
  dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uarmhsrc/decl.c

Local Function throw_obj()

static int throw_obj ( struct obj* obj, int shotlimit )
Prototyped in: src/dothrow.c
Calls: acurr()src/attrib.c
  canletgo()src/do.c
  getdir()src/cmd.c
  throw_gold()src/dothrow.c
  throwit()src/dothrow.c
  The(), You(), an(), body_part(), dealloc_obj(), freeinv(), instapetrify(), pline(), rnd(), setuqwep(), setuswapwep(), setuwep(), setworn(), splitobj(), sprintf(), u_wipe_engr(), weapon_type(), welded(), weldmsg(), xname()
Called by: dofire()src/dothrow.c
  dothrow()src/dothrow.c
References Variables: flagssrc/decl.c
  killer_bufsrc/decl.c
  usrc/decl.c
  uarmgsrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c
  mons, objects, urace, urole

Local Function throwing_weapon()

static boolean throwing_weapon ( struct obj* obj )
Prototyped in: src/dothrow.c
Called by: thitmonst()src/dothrow.c
  throwit()src/dothrow.c
References Variables: objects

Local Function tmiss()

static void tmiss ( struct obj* obj, struct monst* mon )
Calls: miss(), rn2(), wakeup(), xname()
Called by: thitmonst()src/dothrow.c

Local Function toss_up()

static boolean toss_up ( struct obj* obj, boolean hitsroof )
Prototyped in: src/dothrow.c
Calls: breakmsg()src/dothrow.c
  breakobj()src/dothrow.c
  breaktest()src/dothrow.c
  dropy()src/do.c
  hitfloor()src/dothrow.c
  Doname2(), You(), Your(), body_part(), ceiling(), dmgval(), done(), losehp(), make_blinded(), pline(), poly_when_stoned(), polymon(), potionhit(), rnd(), xname()
Called by: throwit()src/dothrow.c
References Variables: flagssrc/decl.c
  killersrc/decl.c
  killer_formatsrc/decl.c
  usrc/decl.c
  uarmhsrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  mons, objects