DEADSOFTWARE

headers describes that c-files implements
[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 #pragma pack(1)
46 typedef struct {
47 int x, y; // coordinates
48 int xv, yv; // velocity
49 int vx, vy;
50 int r, h; // radius, height
51 } obj_t;
53 typedef struct {
54 int x, y;
55 byte d;
56 } pos_t;
58 typedef struct {
59 char n[8];
60 char t;
61 } wall_t;
62 #pragma pack()
64 extern byte w_horiz;
65 extern int sky_type;
66 extern dword walf[256];
67 extern byte walswp[256];
68 extern byte fldb[FLDH][FLDW];
69 extern byte fldf[FLDH][FLDW];
70 extern byte fld[FLDH][FLDW];
72 void W_savegame (FILE *h);
73 void W_loadgame (FILE *h);
74 void W_init (void);
75 int W_load (FILE *h);
77 #endif /* VIEW_H_INCLUDED */