1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\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 __SCROLL16_H_
\r
24 #define __SCROLL16_H_
\r
26 #include "src/lib/16_head.h"
\r
27 #include "src/lib/bakapee.h"
\r
28 #include "src/lib/16_vl.h"
\r
29 #include "src/lib/16_in.h"
\r
30 #include "src/lib/bitmap.h"
\r
31 #include "src/lib/mapread.h" //map is loaded here www
\r
32 #include "src/lib/16_timer.h"
\r
33 #include "src/lib/wcpu/wcpu.h"
\r
34 #include "src/lib/16_tail.h"
\r
36 #include <hw/cpu/cpu.h>
\r
37 #include <hw/dos/dos.h>
\r
38 #include <hw/vga/vga.h>
\r
39 #include <hw/vga/vrl.h>
\r
42 //#define TILERENDER
\r
44 //modexDrawSpritePBufRegion
\r
45 //modexDrawBmpPBufRegion
\r
46 #define PBUFSFUN modexDrawSpriteRegion
\r
47 #define PBUFBFUN modexDrawBmpRegion
\r
48 #define PLAYERBMPDATA player[pn].data
\r
53 int tx; //appears to be the top left tile position on the viewable screen map
\r
54 int ty; //appears to be the top left tile position on the viewable screen map
\r
55 word dxThresh; //????
\r
56 word dyThresh; //????
\r
57 video_t *video; //pointer to game variables of the video
\r
58 pan_t *pan; //pointer the the page panning debug system
\r
70 extern boolean pageflipflop, pageploop;
\r
71 extern unsigned char shinku_fps_indicator_page;
\r
73 extern char global_temp_status_text[512];
\r
75 //map_t allocMap(int w, int h);
\r
76 //void initMap(map_t *map);
\r
77 void walk(map_view_t *pip, player_t *player, word pn);
\r
78 void panpagemanual(map_view_t *pip, player_t *player, word pn);
\r
79 void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid);
\r
80 void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid);
\r
81 void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid);
\r
82 void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid);
\r
83 void near ScrollRight(map_view_t *mv, player_t *player, word id, word plid);
\r
84 void near ScrollLeft(map_view_t *mv, player_t *player, word id, word plid);
\r
85 void near ScrollUp(map_view_t *mv, player_t *player, word id, word plid);
\r
86 void near ScrollDown(map_view_t *mv, player_t *player, word id, word plid);
\r
87 sword chkmap(map_t *map, word q);
\r
88 void mapGoTo(map_view_t *mv, int tx, int ty);
\r
89 void near mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y);
\r
90 void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *p, word poopoffset);
\r
91 void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *p, word poopoffset);
\r
92 void mapDrawWRow(map_view_t *mv, int tx, int ty, word y);
\r
93 void mapDrawWCol(map_view_t *mv, int tx, int ty, word x);
\r
95 void shinku(global_game_variables_t *gv);
\r
96 void near animatePlayer(map_view_t *pip, player_t *player, word playnum, sword scrollswitch);
\r
98 #endif /*__SCROLL16_H_*/
\r