]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/typdefst.h
ok zcroll compiles and i should clean it w
[16.git] / src / lib / typdefst.h
index 6c5ca4e3948ce2c6b548eaf956c7bd30afb48bf2..a27b6b8599374f6950e0939fbb37e215dd5114a7 100755 (executable)
@@ -64,11 +64,12 @@ typedef struct {
        byte *palette;\r
 } planar_buf_t;\r
 \r
+\r
+enum direction {STOP, UP, DOWN, LEFT, RIGHT};\r
 typedef struct {\r
+       int dx, dy; //backwards compait\r
        word id;        /* the Identification number of the page~ For layering~ */\r
        byte far* data; /* the data for the page */\r
-       word dx;                /* col we are viewing on the virtual screen */\r
-       word dy;                /* row we are viewing on the virtual screen */\r
        word sw;                /* screen width */\r
        word sh;                /* screen heigth */\r
        word tw;                /* screen width in tiles */\r
@@ -84,8 +85,9 @@ typedef struct {
        word stridew;                   /*width/4*/\r
        word pagesize;                  /* page size */\r
        word pi;                                /* incremention page by this much to preserve location */\r
+       word delta;                     // How much should we shift the page for smooth scrolling\r
+       enum direction d;                       // Direction we should shift the page\r
 } page_t;\r
-\r
 typedef struct\r
 {\r
        //sprite ....\r
@@ -120,7 +122,7 @@ typedef struct
 } pan_t;\r
 \r
 //video\r
-#define NUMCHUNKS      3016    //keen\r
+#define NUMCHUNKS      416     //keen\r
 \r
 typedef struct\r
 {\r
@@ -257,7 +259,7 @@ typedef struct
 typedef struct\r
 {\r
        boolean                 XMSPresent;\r
-       word                    XMSAvail,XMSPagesAvail,XMSHandle;//++++,XMSVer;\r
+       word                    XMSAvail,XMSPagesAvail,XMSHandle;//,XMSVer;\r
        dword                   XMSDriver;\r
        int                             XMSProtectPage;// = -1;\r
 } pm_xmmi_t;\r
@@ -321,9 +323,9 @@ typedef struct
        byte            ca_levelbit,ca_levelnum;\r
        ca_handle_t     file;           //files to open\r
        ca_mapinfo_t    camap;\r
-       //_seg  *grsegs[NUMCHUNKS];\r
-       //byte          far     grneeded[NUMCHUNKS];\r
-       //huffnode huffnode;\r
+       __SEGA  *grsegs[NUMCHUNKS];\r
+       byte            far     grneeded[NUMCHUNKS];\r
+       huffnode huffnode;\r
 } ca_t;\r
 \r
 //==========================================================================\r
@@ -334,10 +336,13 @@ typedef struct
        video_t video;  // video settings variable\r
        ca_t            ca;     // ca stuff\r
        pm_t            pm;     // pm stuff\r
-       byte *pee;              // message for fps\r
        loghandle_t handle;     //handles for file logging\r
        kurokku_t kurokku;      //clock struct\r
        mminfo_t mm; mminfotype mmi;\r
 } global_game_variables_t;\r
 \r
+extern char global_temp_status_text[512];\r
+\r
+#define EINVFMT EMFILE\r
+\r
 #endif /* _TYPEDEFSTRUCT_H_ */\r