OSDN Git Service

Merge remote-tracking branch 'upstream/master'
[proj16/16.git] / src / lib / bakapee.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\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/modex16.h"\r
28 //#include "src/lib/modex/modex.h"\r
29 #include "16/x/modex.h"\r
30 \r
31 #define TILEWH 16\r
32 #define QUADWH                  TILEWH/2\r
33 #define BONK        400\r
34 #define LGQ          32\r
35 #define HGQ          55\r
36 \r
37 #define TILE\r
38 \r
39 //which lib?\r
40 #define MXLIB\r
41 \r
42 typedef struct {\r
43         word gq;\r
44         sword bakax, bakay;\r
45         sword xx, yy, sx, sy;\r
46         byte coor;\r
47         boolean tile;\r
48 } bakapee_t;\r
49 \r
50 void clrstdin();\r
51 void colortest(page_t *page, bakapee_t *pee);\r
52 void colorz(page_t *page, bakapee_t *pee);\r
53 void ssd(page_t *page, bakapee_t *pee, word svq);\r
54 void dingpp(page_t *page, bakapee_t *pee);\r
55 void dingo(page_t *page, bakapee_t *pee);\r
56 void dingas(bakapee_t *pee);\r
57 void dingu(bakapee_t *pee);\r
58 void dingq(bakapee_t *pee);\r
59 void ding(page_t *page, bakapee_t *pee, word q);\r
60 \r
61 #endif /*__BAKAPEE_H_*/\r