home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / mor4873s.lzh / CONFIG.H next >
C/C++ Source or Header  |  1988-11-01  |  3KB  |  96 lines

  1. /* Person to bother if something goes wrong */
  2. /* recompile files.c and misc2.c if these change */
  3. #define WIZARD    "Jim Wilson"
  4. /* Wizard password */
  5. #define PASSWD1 "Gandalf"
  6. /* God password, for debugging */
  7. #define PASSWD2 "Mithrandir"
  8. /* Wizard/God user id */
  9. #define UID 216
  10.  
  11. #define SCREENMAP        /* enables on-screen condensed map */
  12.  
  13. /* files used by moria, set these to valid pathnames */
  14. /* if you change these, you only have to recompile death.c and files.c */
  15. #ifdef MSDOS
  16. /* Files which can be in a varying place */
  17. #define MORIA_SAV    moriasav
  18. #define MORIA_TOP    moriatop
  19. #define MORIA_TOP_NAME    "MORIA.SCR"
  20. #define MORIA_SAV_NAME    "MORIA.SAV"
  21. #define MORIA_CNF_NAME    "MORIA.CNF"
  22. #else
  23. #define MORIA_SAV    "MORIACHR.SAV"
  24. #define MORIA_HOU    "/usr/public/moriadir/Moria_hours"
  25. #define MORIA_MOR    "/usr/public/moriadir/Moria_news"
  26. #define MORIA_MAS    "/usr/public/moriadir/Character"
  27. #define MORIA_TOP    "/usr/public/moriadir/Highscores"
  28. #define MORIA_HLP    "/usr/public/moriadir/Helpfile"
  29. #endif
  30.  
  31. /* this sets the default user interface, ONE of the two must be defined */
  32. /* use the original key bindings, keypad for movement */
  33. /* if you change this, you only need to recompile main.c */
  34. #define KEY_BINDINGS ORIGINAL
  35. /* this uses a rogue-like key bindings, vi style movement */
  36. /* #define KEY_BINDINGS ROGUE_LIKE */
  37.  
  38. /* no system definitions are needed for 4.3BSD or SUN OS */
  39.  
  40. /* if you are compiling on an ultrix/4.2BSD/Dynix/etc. version of UNIX,
  41.    define this, not needed for SUNs */
  42. /* #define ultrix */
  43.  
  44. /* if you are compiling on a SYS V version of UNIX, define this */
  45. /* #define SYS_V */
  46.  
  47. /* if you are compiling on a SYS III version of UNIX, define this */
  48. /* #define SYS_III */
  49.  
  50. /* if the screen does not look right (it will be obvious) then you have a buggy
  51.    version of curses, and you must define this */
  52. /* this must be defined for Ultrix systems, and for most 4.2BSD systems
  53.    it is not needed for Dynix */
  54. /* only need to recompile io.c */
  55. /* #define BUGGY_CURSES */
  56.  
  57. /* define this is your machine does not have signed characters:
  58.    this is needed for IBM PC-RT, 3B1, 3B2, 3B20, and perhaps others */
  59. /* #define NO_SIGNED_CHARS
  60.  
  61. /* this will slow down the game a bit, and therefore make it use up a little
  62.    less cpu time, this enables sleep() code for the resting commands,
  63.    and for character rerolling */
  64. /* only need to recompile dungeon.c and create.c
  65. /* #define SLOW */
  66.  
  67. /* system dependent defines follow, you should not need to change anything
  68.    below */
  69.  
  70. /* substitute strchr for index on USG versions of UNIX */
  71. #if defined(SYS_V) || defined(MSDOS)
  72. #define index strchr
  73. #endif
  74.  
  75. #ifdef SYS_III
  76. char *index();
  77. #endif
  78.  
  79. #if defined(SYS_III) || defined(SYS_V) || defined(MSDOS)
  80. #ifndef USG
  81. #define USG 
  82. #endif
  83. #endif
  84.  
  85. #ifdef MSDOS
  86. #define register    /* MSC 4.0 still has a problem with register bugs ... */
  87. #endif
  88.  
  89. /* Detect 16-bit integers by wrapping of most positive int. */
  90. #if (0xFFFF + 0x1) == 0x0
  91. #define MAXINT    32767
  92. #define INT16
  93. #else
  94. #define MAXINT    10000000 /* could be as much as 0x7FFFFFFF */
  95. #endif
  96.