OSDN Git Service

ok!! wwww i did some fuckings and it looks like the fack is fucked www
[proj16/16.git] / src / lib / 16_ca.h
1 /* Catacomb Apocalypse Source Code\r
2  * Copyright (C) 1993-2014 Flat Rock Software\r
3  *\r
4  * This program is free software; you can redistribute it and/or modify\r
5  * it under the terms of the GNU General Public License as published by\r
6  * the Free Software Foundation; either version 2 of the License, or\r
7  * (at your option) any later version.\r
8  *\r
9  * This program is distributed in the hope that it will be useful,\r
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  * GNU General Public License for more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along\r
15  * with this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
17  */\r
18 \r
19 // ID_CA.H\r
20 #ifndef __16_CA__\r
21 #define __16_CA__\r
22 \r
23 #ifndef __16_MM__\r
24 #include "src/lib/16_head.h"\r
25 #include "src/lib/16_mm.h"\r
26 #endif\r
27 \r
28 //===========================================================================\r
29 \r
30 //#define NOMAPS\r
31 //#define NOGRAPHICS\r
32 //#define NOAUDIO\r
33 \r
34 //#define MAPHEADERLINKED\r
35 //#define GRHEADERLINKED\r
36 //#define AUDIOHEADERLINKED\r
37 \r
38 //#define NUMMAPS               39\r
39 //#define MAPPLANES             3
40 #define PROFILE\r
41 \r
42 //===========================================================================\r
43 \r
44 /*typedef       struct\r
45 {\r
46         long            planestart[3];\r
47         unsigned        planelength[3];\r
48         unsigned        width,height;\r
49         char            name[16];\r
50 } maptype;*/\r
51 \r
52 //===========================================================================\r
53 \r
54 /*extern        byte            _seg    *tinf;\r
55 extern  int                     mapon;\r
56 \r
57 extern  unsigned        _seg    *mapsegs[3];\r
58 extern  maptype         _seg    *mapheaderseg[NUMMAPS];\r
59 extern  byte            _seg    *audiosegs[NUMSNDCHUNKS];\r
60 extern  void            _seg    *grsegs[NUMCHUNKS];\r
61 \r
62 extern  byte            far     grneeded[NUMCHUNKS];\r
63 extern  byte            ca_levelbit,ca_levelnum;\r
64 \r
65 extern  char            *titleptr[8];*/\r
66 \r
67 extern  int                     profilehandle,debughandle;\r
68 \r
69 //\r
70 // hooks for custom cache dialogs\r
71 //\r
72 extern  void    (*drawcachebox)         (char *title, unsigned numcache);\r
73 extern  void    (*updatecachebox)       (void);\r
74 extern  void    (*finishcachebox)       (void);\r
75 \r
76 //===========================================================================\r
77 \r
78 // just for the score box reshifting\r
79 \r
80 //void CAL_ShiftSprite (unsigned segment,unsigned source,unsigned dest,unsigned width, unsigned height, unsigned pixshift, boolean domask);\r
81 \r
82 //===========================================================================\r
83
84 void CA_OpenDebug (void);\r
85 void CA_CloseDebug (void);
86 boolean CA_FarRead (int handle, byte huge *dest, dword length, mminfo_t *mm);\r
87 boolean CA_FarWrite (int handle, byte huge *source, dword length, mminfo_t *mm);
88 \r
89 boolean CA_ReadFile (char *filename, memptr *ptr, mminfo_t *mm);\r
90 boolean CA_LoadFile (char *filename, memptr *ptr, mminfo_t *mm, mminfotype *mmi);
91 \r
92 //long CA_RLEWCompress (unsigned huge *source, long length, unsigned huge *dest,unsigned rlewtag);\r
93 \r
94 //void CA_RLEWexpand (unsigned huge *source, unsigned huge *dest,long length,unsigned rlewtag);\r
95 \r
96 void CA_Startup (void);\r
97 void CA_Shutdown (void);\r
98 \r
99 //void CA_CacheAudioChunk (int chunk);\r
100 //void CA_LoadAllSounds (void);\r
101 \r
102 /*void CA_UpLevel (void);\r
103 void CA_DownLevel (void);\r
104 \r
105 void CA_SetAllPurge (void);\r
106 \r
107 void CA_ClearMarks (void);\r
108 void CA_ClearAllMarks (void);\r
109 \r
110 #define CA_MarkGrChunk(chunk)   grneeded[chunk]|=ca_levelbit\r
111 \r
112 void CA_CacheGrChunk (int chunk);\r
113 void CA_CacheMap (int mapnum);\r
114 \r
115 void CA_CacheMarks (char *title);*/\r
116 #endif\r