X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=fdf96a278d241d0c9228e3aad7e1a489f4e2e993;hb=fdba3fc0da3fb172176d9f74a8c4c55a23250e8a;hp=9a2f332020ccf882ee737644ae68fcc1875b5814;hpb=43e4f16377fe2d0ed99feaa15d6992df6fa34c7c;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 9a2f3320..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,12 +183,34 @@ typedef struct //from 16_ca //========================================================================== +#define NUMMAPS 4//39 +#define MAPPLANES 3 + +typedef struct +{ + 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; - int mapon; - _seg *grsegs[NUMCHUNKS]; - byte far grneeded[NUMCHUNKS]; + ca_handle_t file; //files to open + ca_mapinfo_t camap; + //_seg *grsegs[NUMCHUNKS]; + //byte far grneeded[NUMCHUNKS]; //huffnode huffnode; } ca_t; @@ -201,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;