home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / NetHack 3.1.3 / source / include / amiconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  3.0 KB  |  134 lines  |  [TEXT/R*ch]

  1. /*    SCCS Id: @(#)amiconf.h    3.1    93/01/17    */
  2. /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1990, 1991, 1992, 1993. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef AMICONF_H
  6. #define AMICONF_H
  7.  
  8. #undef abs        /* avoid using macro form of abs */
  9. #ifndef __SASC_60
  10. # undef min        /* this gets redefined */
  11. # undef max        /* this gets redefined */
  12. #endif
  13.  
  14. #include <time.h>    /* get time_t defined before use! */
  15.  
  16. #ifdef __SASC_60    /* since SAS can prevent re-inclusion */
  17. # include <stdlib.h>    /* general things, including builtins */
  18. # include <string.h>
  19. #endif
  20.  
  21. #ifdef AZTEC_50
  22. # include <stdlib.h>
  23. # define AZTEC_C_WORKAROUND /* Bug which turns up in sounds.c. Bummer... */
  24. # define NO_SIGNAL    /* 5.0 signal handling doesn't like SIGINT...   */
  25. #endif
  26.  
  27. #ifdef _DCC
  28. # include <stdlib.h>
  29. # define _SIZE_T
  30. #endif
  31.  
  32. typedef long off_t;
  33.  
  34. #define MICRO        /* must be defined to allow some inclusions */
  35.  
  36. #ifndef    __SASC_60
  37. # define O_BINARY    0
  38. #endif
  39.  
  40. /* Compile in New Intuition look for 2.0 */
  41. #ifdef    IDCMP_CLOSEWINDOW
  42. # ifndef INTUI_NEW_LOOK
  43. #  define    INTUI_NEW_LOOK    1
  44. # endif
  45. #endif
  46.  
  47. #define MFLOPPY         /* You'll probably want this; provides assistance
  48.              * for typical personal computer configurations
  49.              */
  50. #define RANDOM
  51.  
  52. extern void FDECL(exit, (int));
  53. extern void NDECL(CleanUp);
  54. extern void FDECL(Abort, (long));
  55. extern int NDECL(getpid);
  56. extern char *FDECL(CopyFile, (const char *, const char *));
  57. extern int NDECL(WindowGetchar);
  58.  
  59. extern boolean FromWBench;    /* how were we run? */
  60. extern int ami_argc;
  61. extern char **ami_argv;
  62.  
  63. #ifndef MICRO_H
  64. # include "micro.h"
  65. #endif
  66.  
  67. #ifndef PCCONF_H
  68. # include "pcconf.h"     /* remainder of stuff is almost same as the PC */
  69. # undef    OVERLAY
  70. #endif
  71.  
  72. #define remove(x)       unlink(x)
  73.  
  74. #ifdef AZTEC_C
  75. extern FILE *FDECL(freopen, (const char *, const char *, FILE *));
  76. extern char *FDECL(gets, (char *));
  77. #endif
  78.  
  79. /*#define msmsg        raw_printf*/
  80. #define msmsg        printf
  81.  
  82. /*
  83.  * If AZTEC_C  we can't use the long cpath in vision.c....
  84.  */
  85. #ifdef AZTEC_C
  86. # undef MACRO_CPATH
  87. #endif
  88.  
  89. /*
  90.  *  (Possibly) configurable Amiga options:
  91.  */
  92.  
  93. #define TEXTCOLOR        /* Use colored monsters and objects */
  94. #define HACKFONT        /* Use special hack.font */
  95. #define SHELL            /* Have a shell escape command (!) */
  96. #define MAIL            /* Get mail at unexpected occasions */
  97. #define DEFAULT_ICON "NetHack:default.icon"    /* private icon */
  98. #define AMIFLUSH        /* toss typeahead (select flush in .cnf) */
  99.  
  100. /* new window system options */
  101.             /* WRONG - AMIGA_INTUITION should go away */
  102. #ifdef AMII_GRAPHICS
  103. # define AMIGA_INTUITION        /* high power graphics interface (amii) */
  104. #endif
  105.  
  106. #define CHANGE_COLOR    1
  107.  
  108. #ifdef    TEXTCOLOR
  109. # ifdef    VIEWWINDOW
  110. #  define    DEPTH    4
  111. # else
  112. #  define    DEPTH    3
  113. # endif
  114. #else
  115. # define    DEPTH    2
  116. #endif
  117.  
  118. #define PORT_HELP    "nethack:amii.hlp"
  119.  
  120. #undef    TERMLIB
  121.  
  122. #define    AMII_MUFFLED_VOLUME    40
  123. #define    AMII_SOFT_VOLUME    50
  124. #define    AMII_OKAY_VOLUME    60
  125. #define    AMII_LOUDER_VOLUME    80
  126.  
  127. #ifdef TTY_GRAPHICS
  128. # define ANSI_DEFAULT
  129. #endif
  130.  
  131. extern int amibbs;    /* BBS mode? */
  132.  
  133. #endif /* AMICONF_H */
  134.