X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fweapons.h;h=e6823da0da9ac0d36a7c50b984bc9c22399d4e2a;hp=6ef7460da1b5c2d341bd5520770a6c02637b09e0;hb=ef16dea09f87b15fc6d58fae0aa0832e0648c00e;hpb=a46a1d55c077e3aa91a728047409050187e90083 diff --git a/src/weapons.h b/src/weapons.h index 6ef7460..e6823da 100644 --- a/src/weapons.h +++ b/src/weapons.h @@ -1,49 +1,54 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 - - This file is part of the Doom2D:Rembo project. - - Doom2D:Rembo is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. - - Doom2D:Rembo is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, see or - write to the Free Software Foundation, Inc., - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -// Weapons +/* Copyright (C) 1996-1997 Aleksey Volynskov + * Copyright (C) 2011 Rambo + * Copyright (C) 2020 SovietPony + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License ONLY. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef WEAPONS_H_INLUDED +#define WEAPONS_H_INLUDED #define MAXWPN 300 -void WP_init(void); -void WP_alloc(void); -void WP_act(void); -void WP_draw(void); -void WP_punch(int,int,int,int); -int WP_chainsaw(int,int,int,int); -void WP_gun(int,int,int,int,int,int); -void WP_pistol(int,int,int,int,int); -void WP_mgun(int,int,int,int,int); -void WP_rocket(int,int,int,int,int); -void WP_revf(int,int,int,int,int,int); -void WP_plasma(int,int,int,int,int); -void WP_ball1(int,int,int,int,int); -void WP_ball2(int,int,int,int,int); -void WP_ball7(int,int,int,int,int); -void WP_aplasma(int,int,int,int,int); -void WP_manfire(int,int,int,int,int); -void WP_bfgshot(int,int,int,int,int); -void WP_bfghit(int,int,int); -void WP_shotgun(int,int,int,int,int); -void WP_dshotgun(int,int,int,int,int); -void WP_ognemet(int x,int y,int xd,int yd,int xv,int yv,int o); - -void WP_grenade(int x, int y, int xd, int yd, int o); +typedef struct { + obj_t o; + byte t, s; + int own; + short target; +} weapon_t; + +extern weapon_t wp[MAXWPN]; + +void WP_alloc (void); +void WP_init (void); +void WP_act (void); +void WP_gun (int x, int y, int xd, int yd, int o, int v); +void WP_punch (int x, int y, int d, int own); +int WP_chainsaw (int x, int y, int d, int own); +void WP_rocket (int x, int y, int xd, int yd, int o); +void WP_revf (int x, int y, int xd, int yd, int o, int t); +void WP_plasma (int x, int y, int xd, int yd, int o); +void WP_ball1 (int x, int y, int xd, int yd, int o); +void WP_ball2 (int x, int y, int xd, int yd, int o); +void WP_ball7 (int x, int y, int xd, int yd, int o); +void WP_aplasma (int x, int y, int xd, int yd, int o); +void WP_manfire (int x, int y, int xd, int yd, int o); +void WP_bfgshot (int x, int y, int xd, int yd, int o); +void WP_bfghit (int x, int y, int o); +void WP_pistol (int x,int y,int xd,int yd,int o); +void WP_mgun (int x, int y, int xd, int yd, int o); +void WP_shotgun (int x, int y, int xd, int yd, int o); +void WP_dshotgun (int x, int y, int xd, int yd, int o); +void WP_ognemet (int x, int y, int xd, int yd, int xv, int yv, int o); + +#endif /* WEAPONS_H_INLUDES */