home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / HACKSRC.ZIP / DECL.C < prev    next >
C/C++ Source or Header  |  1985-10-16  |  2KB  |  54 lines

  1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  2. /* decl.c - version 1.0.3 */
  3.  
  4. #include    "hack.h"
  5. char nul[40];            /* contains zeros */
  6. char plname[PL_NSIZ];        /* player name */
  7. #ifdef DGK
  8. char hackdir[PATHLEN];        /* where rumors, help, record are */
  9. char levels[PATHLEN];        /* where levels are */
  10. char lock[FILENAME];        /* pathname of level files */
  11. char permbones[FILENAME];    /* where permanent copy of bones go */
  12. int ramdisk = FALSE;        /* whether to copy bones to levels or not */
  13. struct symbols symbol = {'|', '-', '-', '-', '-', '-', '+', '.', '#'};
  14. int saveprompt = TRUE;
  15. #else
  16. char lock[PL_NSIZ+4] = "1lock";    /* long enough for login name .99 */
  17. #endif DGK
  18.  
  19. boolean in_mklev, restoring;
  20.  
  21. struct rm levl[COLNO][ROWNO];    /* level map */
  22. #ifndef QUEST
  23. #include "mkroom.h"
  24. struct mkroom rooms[MAXNROFROOMS+1];
  25. coord doors[DOORMAX];
  26. #endif QUEST
  27. struct monst *fmon = 0;
  28. struct trap *ftrap = 0;
  29. struct gold *fgold = 0;
  30. struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0,
  31.     *uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0,
  32.     *uleft = 0, *uchain = 0, *uball = 0;
  33. struct flag flags;
  34. struct you u;
  35. struct monst youmonst;    /* dummy; used as return value for boomhit */
  36.  
  37. xchar dlevel = 1;
  38. xchar xupstair, yupstair, xdnstair, ydnstair;
  39. char *save_cm = 0, *killer, *nomovemsg;
  40.  
  41. long moves = 1;
  42. long wailmsg = 0;
  43.  
  44. int multi = 0;
  45. char genocided[60];
  46. char fut_geno[60];
  47.  
  48. xchar curx,cury;
  49. xchar seelx, seehx, seely, seehy;    /* corners of lit room */
  50.  
  51. coord bhitpos;
  52.  
  53. char quitchars[] = " \r\n\033";
  54.