OSDN Git Service

updated copyright. i am not dead just busy. i am working more on wolfenstien 3d and...
[proj16/16.git] / src / lib / bakapee.h
old mode 100644 (file)
new mode 100755 (executable)
index fd0a1a0..8c5c2dc
@@ -1,56 +1,64 @@
-/* Project 16 Source Code~
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
- *
- * This file is part of Project 16.
- *
- * Project 16 is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Project 16 is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>, or
- * write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
-
-#ifndef __BAKAPEE_H_
-#define __BAKAPEE_H_
-
-#include "src/lib/16_head.h"
-#include "src/lib/modex16.h"
-
-#define TILEWH 16
-#define QUADWH                 TILEWH/2
-#define BONK       400\r
-#define LGQ         32\r
-#define HGQ         55
-
-#define TILE
-
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
+#ifndef __BAKAPEE_H_\r
+#define __BAKAPEE_H_\r
+\r
+#include "src/lib/16_head.h"\r
+#include "src/lib/16_vl.h"\r
+#include <hw/cpu/cpu.h>\r
+#include <hw/dos/dos.h>\r
+#include <hw/vga/vga.h>\r
+\r
+#define TILEWH 16\r
+#define QUADWH TILEWH/2\r
+\r
 typedef struct {\r
-       word gq;
-       word qq;\r
+       word gq;\r
        sword bakax, bakay;\r
        sword xx, yy, sx, sy;\r
-       byte coor;
-} bakapee_t;
-
-void pdump(page_t *pee);
-void cls(page_t *page, byte color, byte *Where);
-void colortest(page_t *page, bakapee_t *pee);
-void colorz(page_t *page, bakapee_t *pee);
-void ssd(page_t *page, bakapee_t *pee, word svq);
-void dingpp(page_t *page, bakapee_t *pee);
-void dingo(bakapee_t *pee);
-void dingas(bakapee_t *pee);
-void dingu(bakapee_t *pee);
-void ding(page_t *page, bakapee_t *pee, word q);
-
-#endif /*__BAKAPEE_H_*/
+       byte coor;\r
+       boolean tile;\r
+       word bonk,lgq,hgq;\r
+} bakapee_t;\r
+\r
+#define BAKAFIZZUNSIGNED\r
+#ifdef BAKAFIZZUNSIGNED\r
+boolean baka_FizzleFade (unsigned source, unsigned dest, unsigned width, unsigned height, unsigned frames, boolean abortable, global_game_variables_t *gvar);\r
+#else\r
+boolean baka_FizzleFade (page_t *sourcepage, page_t *destpage, unsigned width, unsigned height, unsigned frames, boolean abortable, global_game_variables_t *gvar);\r
+#endif\r
+void clrstdin();\r
+void TL_DosLibStartup(global_game_variables_t *gvar);\r
+void colortest(page_t *page, bakapee_t *pee);\r
+void colorz(page_t *page, bakapee_t *pee);\r
+void ssd(page_t *page, bakapee_t *pee, word svq);\r
+void dingpp(page_t *page, bakapee_t *pee);\r
+void dingo(page_t *page, bakapee_t *pee);\r
+void dingas(bakapee_t *pee);\r
+void dingaso(bakapee_t *pee);\r
+void dingu(bakapee_t *pee);\r
+void dingq(bakapee_t *pee);\r
+void dingqo(bakapee_t *pee);\r
+void ding(page_t *page, bakapee_t *pee, word q);\r
+\r
+#endif /*__BAKAPEE_H_*/\r