File src/ball.c


Included Files


Preprocessor definitions

#define BCPOS_DIFFER 0

#define BCPOS_CHAIN 1

#define BCPOS_BALL 2


Global Function ballfall()

void ballfall ( void )
Prototyped in: include/extern.h
Calls: Your(), body_part(), freeinv(), losehp(), pline(), pline_The(), rn2(), setuqwep(), setuswapwep(), setuwep(), xname()
References Variables: flags, objects, u, uarmh, uball, uquiver, uswapwep, uwep

Global Function drag_ball()

boolean drag_ball ( xchar x, xchar y, int* bc_control, xchar* ballx, xchar* bally, xchar* chainx, xchar* chainy, boolean* cause_delay )
Prototyped in: include/extern.h
Calls: move_bc()src/ball.c
  You(), You_feel(), dist2(), find_mac(), hmon(), is_pool(), miss(), near_capacity(), newsym(), nomul(), omon_adj(), rnd(), spoteffects(), t_at(), xname()
References Variables: invent, level, u, uball, uchain, youmonst

Global Function drag_down()

void drag_down ( void )
Prototyped in: include/extern.h
Calls: exercise()src/attrib.c
  litter()src/ball.c
  You(), losehp(), pline_The(), rn2(), rnd()
References Variables: uball, uwep

Global Function drop_ball()

void drop_ball ( xchar x, xchar y )
Prototyped in: include/extern.h
Calls: bc_order()src/ball.c
  change_luck()src/attrib.c
  Your(), body_part(), deltrap(), fill_pit(), is_pool(), losehp(), movobj(), newsym(), pline(), pline_The(), rn2(), set_wounded_legs(), spoteffects(), t_at()
References Variables: dungeon_topology, level, u, ublindf, uchain, vision_full_recalc, youmonst

Global Function move_bc()

void move_bc ( int before, int control, xchar ballx, xchar bally, xchar chainx, xchar chainy )
Prototyped in: include/extern.h
Calls: bc_order()src/ball.c
  map_object(), movobj(), newsym(), place_object(), remove_object()
Called by: drag_ball()src/ball.c
References Variables: level, u, uball, ublindf, uchain, youmonst

Global Function placebc()

void placebc ( void )
Prototyped in: include/extern.h
Calls: flooreffects(), impossible(), newsym(), place_object()
References Variables: level, u, uball, uchain

Global Function set_bc()

void set_bc ( int already_blind )
Prototyped in: include/extern.h
Calls: bc_order()src/ball.c
  newsym(), place_object(), remove_object()
References Variables: level, u, uball, uchain

Global Function unplacebc()

void unplacebc ( void )
Prototyped in: include/extern.h
Calls: newsym(), obj_extract_self()
References Variables: level, u, uball, ublindf, uchain, youmonst

Local Function bc_order()

static int bc_order ( void )
Prototyped in: src/ball.c
Calls: impossible()
Called by: drop_ball()src/ball.c
  move_bc()src/ball.c
  set_bc()src/ball.c
References Variables: level, u, uball, uchain

Local Function litter()

static void litter ( void )
Prototyped in: src/ball.c
Calls: Your(), aobjnam(), canletgo(), dropx(), rnd(), setuwep(), weight_cap()
Called by: drag_down()src/ball.c
References Variables: invent, uball, uwep