DEADSOFTWARE

update copyrights
[flatwaifu.git] / src / dots.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 DOTS_H_INCLUDED
19 #define DOTS_H_INCLUDED
21 #include "glob.h"
22 #include "view.h" // obj_t
24 #define MAXDOT 400
26 typedef struct {
27 obj_t o;
28 byte c, t;
29 } dot_t;
31 extern dot_t dot[MAXDOT];
33 void DOT_init (void);
34 void DOT_alloc (void);
35 void DOT_act (void);
36 void DOT_add (int x, int y, char xv, char yv, byte c, byte t);
37 void DOT_blood (int x, int y, int xv, int yv, int n);
38 void DOT_spark (int x, int y, int xv, int yv, int n);
39 void DOT_water (int x, int y, int xv, int yv, int n, int c);
41 #endif /* DOTS_H_INCLUDED */