OSDN Git Service

118c0b477b80ddba1f626d6635cf7ec59d68469c
[proj16/16.git] / src / lib / bakapee.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
3  *\r
4  * This file is part of Project 16.\r
5  *\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
10  *\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
15  *\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
20  *\r
21  */\r
22 \r
23 #ifndef __BAKAPEE_H_\r
24 #define __BAKAPEE_H_\r
25 \r
26 #include "src/lib/16_head.h"\r
27 #include "src/lib/16_vl.h"\r
28 #include <hw/cpu/cpu.h>\r
29 #include <hw/dos/dos.h>\r
30 #include <hw/vga/vga.h>\r
31 \r
32 #define TILEWH  16\r
33 #define QUADWH  TILEWH/2\r
34 \r
35 typedef struct {\r
36         word gq;\r
37         sword bakax, bakay;\r
38         sword xx, yy, sx, sy;\r
39         byte coor;\r
40         boolean tile;\r
41         word bonk,lgq,hgq;\r
42 } bakapee_t;\r
43 \r
44 #define BAKAFIZZUNSIGNED\r
45 #ifdef BAKAFIZZUNSIGNED\r
46 boolean baka_FizzleFade (unsigned source, unsigned dest, unsigned width, unsigned height, unsigned frames, boolean abortable, global_game_variables_t *gvar);\r
47 #else\r
48 boolean baka_FizzleFade (page_t *sourcepage, page_t *destpage, unsigned width, unsigned height, unsigned frames, boolean abortable, global_game_variables_t *gvar);\r
49 #endif\r
50 void clrstdin();\r
51 void TL_DosLibStartup(global_game_variables_t *gvar);\r
52 void colortest(page_t *page, bakapee_t *pee);\r
53 void colorz(page_t *page, bakapee_t *pee);\r
54 void ssd(page_t *page, bakapee_t *pee, word svq);\r
55 void dingpp(page_t *page, bakapee_t *pee);\r
56 void dingo(page_t *page, bakapee_t *pee);\r
57 void dingas(bakapee_t *pee);\r
58 void dingaso(bakapee_t *pee);\r
59 void dingu(bakapee_t *pee);\r
60 void dingq(bakapee_t *pee);\r
61 void dingqo(bakapee_t *pee);\r
62 void ding(page_t *page, bakapee_t *pee, word q);\r
63 \r
64 #endif /*__BAKAPEE_H_*/\r