-#ifdef __WATCOMC__\r
-typedef void __based(__self) * memptr;\r
-#endif\r
-#ifdef __BORLANDC__\r
-typedef void _seg * memptr;\r
-#endif\r
-\r
-/*\r
- * typedefs of the game variables!\r
- */\r
-typedef struct {\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 tilesw; /* screen width in tiles */\r
- word tilesh; /* screen height in tiles */\r
- word width; /* virtual width of the page */\r
- word height; /* virtual height of the page */\r
- word tw;\r
- word th;\r
- sword tilemidposscreenx; /* middle tile position */\r
- sword tilemidposscreeny; /* middle tile position */\r
- sword tileplayerposscreenx; /* player position on screen */\r
- sword tileplayerposscreeny; /* player position on screen */\r
-} page_t;\r
-\r
-typedef struct\r
-{\r
-// int showmemhandle;\r
- int profilehandle,debughandle;\r
- int heaphandle;\r
-} handle_t;\r
-\r
-typedef struct\r
-{\r
- word frames_per_second;\r
- clock_t t;\r
- dword tiku; //frames passed\r
- word clock_start; //timer start\r
- word *clock; //current time on clock\r
- boolean fpscap; //cap the fps var\r
-} kurokku_t;\r
-\r
-typedef struct\r
-{\r
- long old_mode; //old video mode before game!\r
- page_t *page; //pointer to root page[0] //TODO\r
-} video_t;\r
-\r
-typedef struct\r
-{\r
- video_t video; // video settings variable\r
- byte *pee; // message for fps\r
- handle_t handle; //handles for file logging\r
- kurokku_t kurokku; //clock struct\r
-} global_game_variables_t;\r