]> 4ch.mooo.com Git - 16.git/blobdiff - 16/keen456/KEEN4-6/KEEN4/ID_HEADS.H
extrcted keen code remake
[16.git] / 16 / keen456 / KEEN4-6 / KEEN4 / ID_HEADS.H
diff --git a/16/keen456/KEEN4-6/KEEN4/ID_HEADS.H b/16/keen456/KEEN4-6/KEEN4/ID_HEADS.H
new file mode 100755 (executable)
index 0000000..1c42a6b
--- /dev/null
@@ -0,0 +1,109 @@
+/* Reconstructed Commander Keen 4-6 Source Code\r
+ * Copyright (C) 2021 K1n9_Duk3\r
+ *\r
+ * This file is primarily based on:\r
+ * Catacomb 3-D Source Code\r
+ * Copyright (C) 1993-2014 Flat Rock Software\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 2 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License along\r
+ * with this program; if not, write to the Free Software Foundation, Inc.,\r
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+ */\r
+\r
+// ID_GLOB.H\r
+\r
+\r
+#include <ALLOC.H>\r
+#include <CTYPE.H>\r
+#include <DOS.H>\r
+#include <ERRNO.H>\r
+#include <FCNTL.H>\r
+#include <IO.H>\r
+#include <MEM.H>\r
+#include <PROCESS.H>\r
+#include <STDIO.H>\r
+#include <STDLIB.H>\r
+#include <STRING.H>\r
+#include <SYS\STAT.H>\r
+\r
+#define __ID_GLOB__\r
+\r
+//--------------------------------------------------------------------------\r
+\r
+#define KEEN\r
+#define KEEN4\r
+\r
+#define        EXTENSION       "CK4"\r
+\r
+extern char far introscn;\r
+\r
+#include "GFXE_CK4.H"\r
+#include "AUDIOCK4.H"\r
+\r
+//--------------------------------------------------------------------------\r
+\r
+#define        TEXTGR  0\r
+#define        CGAGR   1\r
+#define        EGAGR   2\r
+#define        VGAGR   3\r
+\r
+#define GRMODE EGAGR\r
+\r
+#if GRMODE == EGAGR\r
+#define GREXT  "EGA"\r
+#endif\r
+#if GRMODE == CGAGR\r
+#define GREXT  "CGA"\r
+#endif\r
+\r
+//#define PROFILE\r
+\r
+//\r
+//     ID Engine\r
+//     Types.h - Generic types, #defines, etc.\r
+//     v1.0d1\r
+//\r
+\r
+#ifndef        __TYPES__\r
+#define        __TYPES__\r
+\r
+typedef        enum    {false,true}    boolean;\r
+typedef        unsigned        char            byte;\r
+typedef        unsigned        int                     word;\r
+typedef        unsigned        long            longword;\r
+typedef        byte *                                  Ptr;\r
+\r
+typedef        struct\r
+               {\r
+                       int     x,y;\r
+               } Point;\r
+typedef        struct\r
+               {\r
+                       Point   ul,lr;\r
+               } Rect;\r
+\r
+#define        nil     ((void *)0)\r
+\r
+#endif\r
+\r
+#include "ID_MM.H"\r
+#include "ID_CA.H"\r
+#include "ID_VW.H"\r
+#include "ID_RF.H"\r
+#include "ID_IN.H"\r
+#include "ID_SD.H"\r
+#include "ID_US.H"\r
+\r
+\r
+void   Quit (char *error);             // defined in user program\r
+\r