]> 4ch.mooo.com Git - 16.git/blob - 16/keen456/KEEN4-6/KEEN6C/ID_HEADS.H
extrcted keen code remake
[16.git] / 16 / keen456 / KEEN4-6 / KEEN6C / ID_HEADS.H
1 /* Reconstructed Commander Keen 4-6 Source Code\r
2  * Copyright (C) 2021 K1n9_Duk3\r
3  *\r
4  * This file is primarily based on:\r
5  * Catacomb 3-D Source Code\r
6  * Copyright (C) 1993-2014 Flat Rock Software\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License along\r
19  * with this program; if not, write to the Free Software Foundation, Inc.,\r
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
21  */\r
22 \r
23 // ID_GLOB.H\r
24 \r
25 \r
26 #include <ALLOC.H>\r
27 #include <CTYPE.H>\r
28 #include <DOS.H>\r
29 #include <ERRNO.H>\r
30 #include <FCNTL.H>\r
31 #include <IO.H>\r
32 #include <MEM.H>\r
33 #include <PROCESS.H>\r
34 #include <STDIO.H>\r
35 #include <STDLIB.H>\r
36 #include <STRING.H>\r
37 #include <SYS\STAT.H>\r
38 \r
39 #define __ID_GLOB__\r
40 \r
41 //--------------------------------------------------------------------------\r
42 \r
43 #define KEEN\r
44 #define KEEN6\r
45 \r
46 #define EXTENSION       "CK6"\r
47 \r
48 extern  char far introscn;\r
49 \r
50 #include "GFXC_CK6.H"\r
51 #include "AUDIOCK6.H"\r
52 \r
53 //--------------------------------------------------------------------------\r
54 \r
55 #define TEXTGR  0\r
56 #define CGAGR   1\r
57 #define EGAGR   2\r
58 #define VGAGR   3\r
59 \r
60 #define GRMODE  CGAGR\r
61 \r
62 #if GRMODE == EGAGR\r
63 #define GREXT   "EGA"\r
64 #endif\r
65 #if GRMODE == CGAGR\r
66 #define GREXT   "CGA"\r
67 #endif\r
68 \r
69 //#define PROFILE\r
70 \r
71 //\r
72 //      ID Engine\r
73 //      Types.h - Generic types, #defines, etc.\r
74 //      v1.0d1\r
75 //\r
76 \r
77 #ifndef __TYPES__\r
78 #define __TYPES__\r
79 \r
80 typedef enum    {false,true}    boolean;\r
81 typedef unsigned        char            byte;\r
82 typedef unsigned        int                     word;\r
83 typedef unsigned        long            longword;\r
84 typedef byte *                                  Ptr;\r
85 \r
86 typedef struct\r
87                 {\r
88                         int     x,y;\r
89                 } Point;\r
90 typedef struct\r
91                 {\r
92                         Point   ul,lr;\r
93                 } Rect;\r
94 \r
95 #define nil     ((void *)0)\r
96 \r
97 #endif\r
98 \r
99 #include "ID_MM.H"\r
100 #include "ID_CA.H"\r
101 #include "ID_VW.H"\r
102 #include "ID_RF.H"\r
103 #include "ID_IN.H"\r
104 #include "ID_SD.H"\r
105 #include "ID_US.H"\r
106 \r
107 \r
108 void    Quit (char *error);             // defined in user program\r
109 \r