DEADSOFTWARE

portability: remove pragma pack
[flatwaifu.git] / src / dots.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
5 This file is part of the Doom2D:Rembo project.
7 Doom2D:Rembo is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
11 Doom2D:Rembo is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> or
18 write to the Free Software Foundation, Inc.,
19 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
22 #ifndef DOTS_H_INCLUDED
23 #define DOTS_H_INCLUDED
25 #include "glob.h"
26 #include "view.h" // obj_t
27 #include <stdio.h> // FILE
29 #define MAXDOT 400
31 typedef struct {
32 obj_t o;
33 byte c, t;
34 } dot_t;
36 extern dot_t dot[MAXDOT];
38 void DOT_savegame (FILE *h);
39 void DOT_loadgame (FILE *h);
40 void DOT_init (void);
41 void DOT_alloc (void);
42 void DOT_act (void);
43 void DOT_add (int x, int y, char xv, char yv, byte c, byte t);
44 void DOT_blood (int x, int y, int xv, int yv, int n);
45 void DOT_spark (int x, int y, int xv, int yv, int n);
46 void DOT_water (int x, int y, int xv, int yv, int n, int c);
48 #endif /* DOTS_H_INCLUDED */