X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=fdf96a278d241d0c9228e3aad7e1a489f4e2e993;hb=fdba3fc0da3fb172176d9f74a8c4c55a23250e8a;hp=d01ebab40598eea90e70e85fbdba0ad4273d67bd;hpb=df87f3ca145683309e2ebd3eb186cf6aca2c4e37;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index d01ebab4..fdf96a27 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -100,10 +100,9 @@ typedef struct typedef struct { -// int showmemhandle; - int profilehandle,debughandle; + int profilehandle,debughandle,showmemhandle; int heaphandle; -} handle_t; +} loghandle_t; typedef struct { @@ -184,15 +183,35 @@ typedef struct //from 16_ca //========================================================================== +#define NUMMAPS 4//39 +#define MAPPLANES 3 + typedef struct { - unsigned bit0,bit1; // 0-255 is a character, > is a pointer to a node + word bit0,bit1; // 0-255 is a character, > is a pointer to a node } huffnode; +typedef struct +{ + int mapon, mapnum; + __SEGA *mapsegs[4]; + __SEGA *mapheaderseg[NUMMAPS]; + __SEGA *tinf; +} ca_mapinfo_t; + +typedef struct +{ + int maphandle[4]; // handle to MAPTEMP / GAMEMAPS +} ca_handle_t; + typedef struct { byte ca_levelbit,ca_levelnum; - huffnode huffnode; + ca_handle_t file; //files to open + ca_mapinfo_t camap; + //_seg *grsegs[NUMCHUNKS]; + //byte far grneeded[NUMCHUNKS]; + //huffnode huffnode; } ca_t; //========================================================================== @@ -203,7 +222,7 @@ typedef struct video_t video; // video settings variable ca_t ca; // ca stuff byte *pee; // message for fps - handle_t handle; //handles for file logging + loghandle_t handle; //handles for file logging kurokku_t kurokku; //clock struct mminfo_t mm; mminfotype mmi; } global_game_variables_t;