home *** CD-ROM | disk | FTP | other *** search
- /*
- ** showlistdet.c Copyright 1991 Kent Paul Dolan,
- ** Mountain View, CA, USA 94039-0755
- **
- ** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
- ** May be freely used or modified in any non-commercial work. Copyrighted
- ** only to prevent patenting by someone else.
- */
-
- #include <stdio.h>
- #include "townmaze.h"
- #include "townproto.h"
-
- #ifdef __STDC__
- void showlistdetail()
- #else
- int showlistdetail()
- #endif
- {
-
- int i, j;
-
- for (i = 0; i < (mazeheight/2); i++)
- {
- for (j = 0; j < (mazewidth/2); j++)
- fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].prev);
- fprintf(stderr,"\n");
-
- for (j = 0; j < (mazewidth/2); j++)
- fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].next);
- fprintf(stderr,"\n");
-
- for (j = 0; j < (mazewidth/2); j++)
- fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].status);
- fprintf(stderr,"\n");
-
- for (j = 0; j < (mazewidth/2); j++)
- fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].streetnum);
- fprintf(stderr,"\n");
-
- for (j = 0; j < (mazewidth/2); j++)
- fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].streetdir);
- fprintf(stderr,"\n\n");
-
- }
- return;
- }
-