File src/rect.c


Included Files


Preprocessor definitions

#define MAXRECT 50

#define XLIM 4

#define YLIM 3


Local Variables

rect
static NhRect rect[50+1]
Used in: add_rect()
  get_rect()
  get_rect_ind()
  init_rect()
  remove_rect()
  rnd_rect()
  split_rects()

rect_cnt
static int rect_cnt
Used in: add_rect()
  get_rect()
  get_rect_ind()
  init_rect()
  remove_rect()
  rnd_rect()
  split_rects()


Global Function add_rect()

void add_rect ( NhRect* r )
Prototyped in: include/extern.h
Calls: get_rect()src/rect.c
  pline()src/pline.c
Called by: split_rects()src/rect.c
References Variables: flagssrc/decl.c
  rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function get_rect()

NhRect* get_rect ( NhRect* r )
Prototyped in: include/extern.h
Called by: add_rect()src/rect.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function get_rect_ind()

int get_rect_ind ( NhRect* r )
Prototyped in: src/rect.c
Called by: remove_rect()src/rect.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function init_rect()

void init_rect ( void )
Prototyped in: include/extern.h
Called by: clear_level_structures()src/mklev.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function remove_rect()

void remove_rect ( NhRect* r )
Prototyped in: include/extern.h
Calls: get_rect_ind()src/rect.c
Called by: split_rects()src/rect.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function rnd_rect()

NhRect* rnd_rect ( void )
Prototyped in: include/extern.h
Calls: rn2()
Called by: makelevel()src/mklev.c
  makerooms()src/mklev.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Global Function split_rects()

void split_rects ( NhRect* r1, NhRect* r2 )
Prototyped in: include/extern.h
Calls: add_rect()src/rect.c
  intersect()src/rect.c
  remove_rect()src/rect.c
  split_rects()src/rect.c
Called by: split_rects()src/rect.c
References Variables: rectsrc/rect.c
  rect_cntsrc/rect.c

Local Function intersect()

static boolean intersect ( NhRect* r1, NhRect* r2, NhRect* r3 )
Prototyped in: src/rect.c
Called by: split_rects()src/rect.c