DEADSOFTWARE

map: move map loading to separate file
[flatwaifu.git] / src / view.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
23 #ifndef VIEW_H_INCLUDED
24 #define VIEW_H_INCLUDED
26 #include "glob.h"
27 #include <stdio.h> // FILE
29 #define FLDW 100
30 #define FLDH 100
31 #define CELW 8
32 #define CELH 8
33 #define MAXTXW 16
34 #define MAXTXH 8
36 enum {
37 HIT_SOME, HIT_ROCKET, HIT_BFG, HIT_TRAP, HIT_WATER, HIT_ELECTRO, HIT_FLAME
38 };
40 enum {
41 GS_TITLE, GS_GAME, GS_INTER, GS_DARKEN, GS_ENDANIM, GS_END2ANIM, GS_ENDSCR,
42 GS_BVIDEO, GS_EVIDEO, GS_END3ANIM
43 };
45 typedef struct {
46 int x, y; // coordinates
47 int xv, yv; // velocity
48 int vx, vy;
49 int r, h; // radius, height
50 } obj_t;
52 typedef struct {
53 int x, y;
54 byte d;
55 } pos_t;
57 typedef struct {
58 char n[8];
59 char t;
60 } wall_t;
62 extern int sky_type;
63 extern dword walf[256];
64 extern byte fldb[FLDH][FLDW];
65 extern byte fldf[FLDH][FLDW];
66 extern byte fld[FLDH][FLDW];
68 void W_init (void);
70 #endif /* VIEW_H_INCLUDED */