DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / weapons.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 WEAPONS_H_INLUDED
19 #define WEAPONS_H_INLUDED
21 #define MAXWPN 300
23 typedef struct {
24 obj_t o;
25 byte t, s;
26 int own;
27 short target;
28 } weapon_t;
30 extern weapon_t wp[MAXWPN];
32 void WP_alloc (void);
33 void WP_init (void);
34 void WP_act (void);
35 void WP_gun (int x, int y, int xd, int yd, int o, int v);
36 void WP_punch (int x, int y, int d, int own);
37 int WP_chainsaw (int x, int y, int d, int own);
38 void WP_rocket (int x, int y, int xd, int yd, int o);
39 void WP_revf (int x, int y, int xd, int yd, int o, int t);
40 void WP_plasma (int x, int y, int xd, int yd, int o);
41 void WP_ball1 (int x, int y, int xd, int yd, int o);
42 void WP_ball2 (int x, int y, int xd, int yd, int o);
43 void WP_ball7 (int x, int y, int xd, int yd, int o);
44 void WP_aplasma (int x, int y, int xd, int yd, int o);
45 void WP_manfire (int x, int y, int xd, int yd, int o);
46 void WP_bfgshot (int x, int y, int xd, int yd, int o);
47 void WP_bfghit (int x, int y, int o);
48 void WP_pistol (int x,int y,int xd,int yd,int o);
49 void WP_mgun (int x, int y, int xd, int yd, int o);
50 void WP_shotgun (int x, int y, int xd, int yd, int o);
51 void WP_dshotgun (int x, int y, int xd, int yd, int o);
52 void WP_ognemet (int x, int y, int xd, int yd, int xv, int yv, int o);
54 #endif /* WEAPONS_H_INLUDES */