Debian Codegraph @

prboom2/src/dsda/pclass.h

raw
1 //
2 // Copyright(C) 2021 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
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 // DESCRIPTION:
15 // DSDA Player Class
16 //
17
18 #ifndef __DSDA_PCLASS__
19 #define __DSDA_PCLASS__
20
21 #include "m_fixed.h"
22 #include "doomdef.h"
23
24 typedef struct dsda_pclass_s {
25 int armor_increment[NUMARMOR];
26 int auto_armor_save;
27 int armor_max;
28
29 fixed_t forwardmove[2];
30 fixed_t sidemove[2];
31 fixed_t stroller_threshold;
32 fixed_t turbo_threshold;
33
34 int normal_state;
35 int run_state;
36 int fire_weapon_state;
37 int attack_state;
38 int attack_end_state;
39 } dsda_pclass_t;
40
41 extern dsda_pclass_t pclass[NUMCLASSES];
42
43 #endif