DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / view.h
1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
18 #ifndef VIEW_H_INCLUDED
19 #define VIEW_H_INCLUDED
21 #include "glob.h"
23 #define FLDW 100
24 #define FLDH 100
25 #define CELW 8
26 #define CELH 8
27 #define MAXTXW 16
28 #define MAXTXH 8
30 enum {
31 HIT_SOME, HIT_ROCKET, HIT_BFG, HIT_TRAP, HIT_WATER, HIT_ELECTRO, HIT_FLAME
32 };
34 enum {
35 GS_TITLE, GS_GAME, GS_INTER, GS_DARKEN, GS_ENDANIM, GS_END2ANIM, GS_ENDSCR,
36 GS_BVIDEO, GS_EVIDEO, GS_END3ANIM
37 };
39 typedef struct {
40 int x, y; // coordinates
41 int xv, yv; // velocity
42 int vx, vy;
43 int r, h; // radius, height
44 } obj_t;
46 extern int sky_type;
47 extern dword walf[256];
48 extern byte fldb[FLDH][FLDW];
49 extern byte fldf[FLDH][FLDW];
50 extern byte fld[FLDH][FLDW];
52 void W_init (void);
54 #endif /* VIEW_H_INCLUDED */