1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
\r
4 * This file is part of Project 16.
\r
6 * Project 16 is free software; you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation; either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * Project 16 is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with this program. If not, see <http://www.gnu.org/licenses/>, or
\r
18 * write to the Free Software Foundation, Inc., 51 Franklin Street,
\r
19 * Fifth Floor, Boston, MA 02110-1301 USA.
\r
23 #ifndef _TYPEDEFSTRUCT_H_
\r
24 #define _TYPEDEFSTRUCT_H_
\r
26 #include "src/lib/types.h"
\r
29 * typedefs of the game variables!
\r
32 word id; /* the Identification number of the page~ For layering~ */
\r
33 byte far* data; /* the data for the page */
\r
34 word dx; /* col we are viewing on the virtual screen */
\r
35 word dy; /* row we are viewing on the virtual screen */
\r
36 word sw; /* screen width */
\r
37 word sh; /* screen heigth */
\r
38 word tilesw; /* screen width in tiles */
\r
39 word tilesh; /* screen height in tiles */
\r
40 word width; /* virtual width of the page */
\r
41 word height; /* virtual height of the page */
\r
44 sword tilemidposscreenx; /* middle tile position */
\r
45 sword tilemidposscreeny; /* middle tile position */
\r
46 sword tileplayerposscreenx; /* player position on screen */
\r
47 sword tileplayerposscreeny; /* player position on screen */
\r
52 // int showmemhandle;
\r
53 int profilehandle,debughandle;
\r
59 word frames_per_second;
\r
61 dword tiku; //frames passed
\r
62 word clock_start; //timer start
\r
63 word *clock; //current time on clock
\r
64 boolean fpscap; //cap the fps var
\r
69 long old_mode; //old video mode before game!
\r
70 page_t page[4]; //pointer to root page[0]
\r
75 video_t video; // video settings variable
\r
76 byte *pee; // message for fps
\r
77 handle_t handle; //handles for file logging
\r
78 kurokku_t kurokku; //clock struct
\r
79 } global_game_variables_t;
\r
81 #endif /* _TYPEDEFSTRUCT_H_ */
\r