1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
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.
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.
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/>.
18 #ifndef PLAYER_H_INCLUDED
19 #define PLAYER_H_INCLUDED
22 #include "view.h" // obj_t
25 #define PL_DRAWARMOR 2
29 #define PL_DRAWKEYS 32
30 #define PL_DRAWLIVES 64
49 #define PL_POWERUP_TIME 546
55 int life
, armor
, hit
, hito
;
59 int frag
, ammo
, shel
, rock
, cell
, fuel
, kills
, secrets
;
60 byte fire
, cwpn
, csnd
;
70 int ku
, kd
, kl
, kr
, kf
, kj
, kwl
, kwr
, kp
;
73 extern byte p_immortal
;
81 extern byte plr_goanim
[];
82 extern byte plr_dieanim
[];
83 extern byte plr_slopanim
[];
85 int PL_isdead (player_t
*p
);
89 void PL_spawn (player_t
*p
, int x
, int y
, char d
);
90 int PL_hit (player_t
*p
, int d
, int o
, int t
);
91 void PL_damage (player_t
*p
);
92 void PL_cry (player_t
*p
);
93 int PL_give (player_t
*p
, int t
);
94 void PL_act (player_t
*p
);
95 void bfg_fly (int x
, int y
, int o
);
97 #endif /* PLAYER_H_INCLUDED */