DEADSOFTWARE

portability: remove dependency on str(n)casemp
[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"
22 #include <stdio.h> // FILE
24 #define FLDW 100
25 #define FLDH 100
26 #define CELW 8
27 #define CELH 8
28 #define MAXTXW 16
29 #define MAXTXH 8
31 enum {
32 HIT_SOME, HIT_ROCKET, HIT_BFG, HIT_TRAP, HIT_WATER, HIT_ELECTRO, HIT_FLAME
33 };
35 enum {
36 GS_TITLE, GS_GAME, GS_INTER, GS_DARKEN, GS_ENDANIM, GS_END2ANIM, GS_ENDSCR,
37 GS_BVIDEO, GS_EVIDEO, GS_END3ANIM
38 };
40 typedef struct {
41 int x, y; // coordinates
42 int xv, yv; // velocity
43 int vx, vy;
44 int r, h; // radius, height
45 } obj_t;
47 typedef struct {
48 int x, y;
49 byte d;
50 } pos_t;
52 typedef struct {
53 char n[8];
54 char t;
55 } wall_t;
57 extern int sky_type;
58 extern dword walf[256];
59 extern byte fldb[FLDH][FLDW];
60 extern byte fldf[FLDH][FLDW];
61 extern byte fld[FLDH][FLDW];
63 void W_init (void);
65 #endif /* VIEW_H_INCLUDED */