File src/dbridge.c


Included Files


Preprocessor definitions

#define ENTITIES 2

#define is_u( etmp )

#define e_canseemon( etmp )

#define mk_message( dest )

#define mk_corpse( dest )


Type struct entity

struct entity
struct entity 
   { 
     struct monst* emon; 
     struct permonst* edata; 
     int ex; 
     int ey; 
   } 

Local Variables

occupants
static struct entity occupants[2]
Used in: close_drawbridge()
  destroy_drawbridge()
  e_at()
  open_drawbridge()

Global Function close_drawbridge()

void close_drawbridge ( int x, int y )
Prototyped in: include/extern.h
Calls: do_entity()src/dbridge.c
  get_wall_for_db()src/dbridge.c
  set_entity()src/dbridge.c
  You(), You_hear(), block_point(), delallobj(), deltrap(), dist2(), newsym(), revive_nasty(), t_at()
References Variables: occupantssrc/dbridge.c
  flags, level, u, viz_array

Global Function create_drawbridge()

boolean create_drawbridge ( int x, int y, int dir, boolean flag )
Prototyped in: include/extern.h
Calls: impossible()
References Variables: level

Global Function destroy_drawbridge()

void destroy_drawbridge ( int x, int y )
Prototyped in: include/extern.h
Calls: E_phrase()src/dbridge.c
  automiss()src/dbridge.c
  do_entity()src/dbridge.c
  e_died()src/dbridge.c
  e_missed()src/dbridge.c
  get_wall_for_db()src/dbridge.c
  is_pool()src/dbridge.c
  set_entity()src/dbridge.c
  You_hear(), deltrap(), dmgtype(), does_block(), flooreffects(), newsym(), obj_extract_self(), on_level(), pline(), pline_The(), sobj_at(), t_at(), unblock_point(), wake_nearto(), worm_known()
References Variables: occupantssrc/dbridge.c
  dungeon_topology, flags, killer, killer_format, level, u, ublindf, viz_array, youmonst

Global Function find_drawbridge()

boolean find_drawbridge ( int* x, int* y )
Prototyped in: include/extern.h
Calls: is_drawbridge_wall()src/dbridge.c
Called by: do_entity()src/dbridge.c
References Variables: level

Global Function is_db_wall()

boolean is_db_wall ( int x, int y )
Prototyped in: include/extern.h
Called by: do_entity()src/dbridge.c
  e_jumps()src/dbridge.c
  e_missed()src/dbridge.c
  e_survives_at()src/dbridge.c
References Variables: level

Global Function is_drawbridge_wall()

int is_drawbridge_wall ( int x, int y )
Prototyped in: include/extern.h
Called by: find_drawbridge()src/dbridge.c
References Variables: level

Global Function is_ice()

boolean is_ice ( int x, int y )
Prototyped in: include/extern.h
Calls: isok()src/cmd.c
References Variables: level

Global Function is_lava()

boolean is_lava ( int x, int y )
Prototyped in: include/extern.h
Calls: isok()src/cmd.c
Called by: do_entity()src/dbridge.c
  e_survives_at()src/dbridge.c
  moveloop()src/allmain.c
  use_trap()src/apply.c
References Variables: level

Global Function is_pool()

boolean is_pool ( int x, int y )
Prototyped in: include/extern.h
Calls: isok()src/cmd.c
Called by: destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
  drag_ball()src/ball.c
  drop_ball()src/ball.c
  e_missed()src/dbridge.c
  e_survives_at()src/dbridge.c
  fig_transform()src/apply.c
  use_trap()src/apply.c
References Variables: level

Global Function open_drawbridge()

void open_drawbridge ( int x, int y )
Prototyped in: include/extern.h
Calls: do_entity()src/dbridge.c
  get_wall_for_db()src/dbridge.c
  set_entity()src/dbridge.c
  You(), delallobj(), deltrap(), dist2(), newsym(), on_level(), revive_nasty(), t_at(), unblock_point()
References Variables: occupantssrc/dbridge.c
  dungeon_topology, level, u, viz_array

Local Function E_phrase()

static const char* E_phrase ( struct entity* etmp, const char* verb )
Prototyped in: src/dbridge.c
Calls: Monnam(), strcat(), strcmp(), strcpy(), strlen()
Called by: destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
References Variables: youmonst

Local Function automiss()

static boolean automiss ( struct entity* etmp )
Prototyped in: src/dbridge.c
Called by: destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
  e_missed()src/dbridge.c
References Variables: u, youmonst

Local Function do_entity()

static void do_entity ( struct entity* etmp )
Prototyped in: src/dbridge.c
Calls: E_phrase()src/dbridge.c
  automiss()src/dbridge.c
  do_entity()src/dbridge.c
  e_at()src/dbridge.c
  e_died()src/dbridge.c
  e_jumps()src/dbridge.c
  e_missed()src/dbridge.c
  e_nam()src/dbridge.c
  e_survives_at()src/dbridge.c
  find_drawbridge()src/dbridge.c
  get_wall_for_db()src/dbridge.c
  is_db_wall()src/dbridge.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  You(), You_hear(), dmgtype(), place_monster(), pline(), pline_The(), update_monster_region(), worm_known()
Called by: close_drawbridge()src/dbridge.c
  destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
  open_drawbridge()src/dbridge.c
References Variables: flags, killer, killer_format, level, u, ublindf, viz_array, youmonst

Local Function e_at()

static struct entity* e_at ( int x, int y )
Prototyped in: src/dbridge.c
Called by: do_entity()src/dbridge.c
References Variables: occupantssrc/dbridge.c

Local Function e_died()

static void e_died ( struct entity* etmp, int dest, int how )
Prototyped in: src/dbridge.c
Calls: e_survives_at()src/dbridge.c
  dmgtype(), done(), drown(), enexto(), lava_effects(), monkilled(), pline(), teleds(), xkilled()
Called by: destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
References Variables: flags, killer, killer_format, u, youmonst

Local Function e_jumps()

static boolean e_jumps ( struct entity* etmp )
Prototyped in: src/dbridge.c
Calls: is_db_wall()src/dbridge.c
  rnd()
Called by: do_entity()src/dbridge.c
References Variables: u, youmonst

Local Function e_missed()

static boolean e_missed ( struct entity* etmp, boolean chunks )
Prototyped in: src/dbridge.c
Calls: automiss()src/dbridge.c
  is_db_wall()src/dbridge.c
  is_pool()src/dbridge.c
  rnd()
Called by: destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
References Variables: u, youmonst

Local Function e_nam()

static const char* e_nam ( struct entity* etmp )
Prototyped in: src/dbridge.c
Calls: mon_nam()
Called by: do_entity()src/dbridge.c
References Variables: youmonst

Local Function e_survives_at()

static boolean e_survives_at ( struct entity* etmp, int x, int y )
Prototyped in: src/dbridge.c
Calls: is_db_wall()src/dbridge.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  on_level()
Called by: do_entity()src/dbridge.c
  e_died()src/dbridge.c
References Variables: dungeon_topology, mons, u, youmonst

Local Function get_wall_for_db()

static void get_wall_for_db ( int* x, int* y )
Prototyped in: src/dbridge.c
Called by: close_drawbridge()src/dbridge.c
  destroy_drawbridge()src/dbridge.c
  do_entity()src/dbridge.c
  open_drawbridge()src/dbridge.c
References Variables: level

Local Function m_to_e()

static void m_to_e ( struct monst* mtmp, int x, int y, struct entity* etmp )
Prototyped in: src/dbridge.c
Called by: set_entity()src/dbridge.c
References Variables: mons

Local Function set_entity()

static void set_entity ( int x, int y, struct entity* etmp )
Prototyped in: src/dbridge.c
Calls: m_to_e()src/dbridge.c
  u_to_e()src/dbridge.c
Called by: close_drawbridge()src/dbridge.c
  destroy_drawbridge()src/dbridge.c
  open_drawbridge()src/dbridge.c
References Variables: level, u

Local Function u_to_e()

static void u_to_e ( struct entity* etmp )
Prototyped in: src/dbridge.c
Called by: set_entity()src/dbridge.c
References Variables: u, youmonst