X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ftypdefst.h;h=a27b6b8599374f6950e0939fbb37e215dd5114a7;hb=cf4f57eb4f84e32edaaa7ae9e3233c335041a300;hp=b34d133d86cf884c991be036cb1a8ea6204e4327;hpb=e271343a59cfb8fd3afd1f011a3f9ff860057aba;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index b34d133d..a27b6b85 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -64,11 +64,12 @@ typedef struct { byte *palette; } planar_buf_t; + +enum direction {STOP, UP, DOWN, LEFT, RIGHT}; typedef struct { + int dx, dy; //backwards compait word id; /* the Identification number of the page~ For layering~ */ byte far* data; /* the data for the page */ - word dx; /* col we are viewing on the virtual screen */ - word dy; /* row we are viewing on the virtual screen */ word sw; /* screen width */ word sh; /* screen heigth */ word tw; /* screen width in tiles */ @@ -84,8 +85,9 @@ typedef struct { word stridew; /*width/4*/ word pagesize; /* page size */ word pi; /* incremention page by this much to preserve location */ + word delta; // How much should we shift the page for smooth scrolling + enum direction d; // Direction we should shift the page } page_t; - typedef struct { //sprite .... @@ -120,7 +122,7 @@ typedef struct } pan_t; //video -#define NUMCHUNKS 3016 //keen +#define NUMCHUNKS 416 //keen typedef struct { @@ -236,7 +238,7 @@ typedef struct // Main Mem specific variables typedef struct { -// boolean MainPresent; + boolean MainPresent; memptr MainMemPages[PMMaxMainMem]; PMBlockAttr MainMemUsed[PMMaxMainMem]; int MainPagesAvail; @@ -245,7 +247,7 @@ typedef struct // EMS specific variables typedef struct { -// boolean EMSPresent; + boolean EMSPresent; unsigned int EMSVer; word EMSAvail,EMSPagesAvail,EMSHandle, EMSPageFrame,EMSPhysicalPage; @@ -256,9 +258,9 @@ typedef struct // XMS specific variables typedef struct { -// boolean XMSPresent; - word XMSAvail,XMSPagesAvail,XMSHandle; - dword XMSDriver; //TODO: changed to word + boolean XMSPresent; + word XMSAvail,XMSPagesAvail,XMSHandle;//,XMSVer; + dword XMSDriver; int XMSProtectPage;// = -1; } pm_xmmi_t; @@ -321,9 +323,9 @@ typedef struct byte ca_levelbit,ca_levelnum; ca_handle_t file; //files to open ca_mapinfo_t camap; - //_seg *grsegs[NUMCHUNKS]; - //byte far grneeded[NUMCHUNKS]; - //huffnode huffnode; + __SEGA *grsegs[NUMCHUNKS]; + byte far grneeded[NUMCHUNKS]; + huffnode huffnode; } ca_t; //========================================================================== @@ -334,10 +336,13 @@ typedef struct video_t video; // video settings variable ca_t ca; // ca stuff pm_t pm; // pm stuff - byte *pee; // message for fps loghandle_t handle; //handles for file logging kurokku_t kurokku; //clock struct mminfo_t mm; mminfotype mmi; } global_game_variables_t; +extern char global_temp_status_text[512]; + +#define EINVFMT EMFILE + #endif /* _TYPEDEFSTRUCT_H_ */